github actions: use separate job for publishing bootstraps

This commit is contained in:
Leonid Pliushch 2021-09-17 21:49:08 +03:00
parent 642d8e5616
commit 399cc87aa9
No known key found for this signature in database
GPG Key ID: 45F2964132545795

View File

@ -20,6 +20,21 @@ jobs:
uses: actions/checkout@v2
- name: Create bootstrap archive
run: ./scripts/generate-bootstraps.sh --architectures ${{ matrix.arch }}
- name: Store artifacts
uses: actions/upload-artifact@v2
with:
name: bootstrap-archives-${{ github.sha }}
path: "*.zip"
publish:
runs-on: ubuntu-latest
steps:
- name: Git clone
uses: actions/checkout@v2
- name: Fetch bootstrap archives
uses: actions/download-artifact@v2
with:
name: bootstrap-archives-${{ github.sha }}
path: ./
- name: Create new tag
id: get_tag
run: |
@ -42,8 +57,3 @@ jobs:
file_glob: true
release_name: "Bootstrap archives for Termux application"
tag: ${{ steps.get_tag.outputs.tag_name }}
- name: Store artifacts
uses: actions/upload-artifact@v2
with:
name: bootstrap-archives-${{ github.sha }}
path: "*.zip"