From 399cc87aa9be5b5d55e3ec59feb6426bae36cb2f Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Fri, 17 Sep 2021 21:49:08 +0300 Subject: [PATCH] github actions: use separate job for publishing bootstraps --- .github/workflows/bootstrap_archives.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bootstrap_archives.yml b/.github/workflows/bootstrap_archives.yml index 433bb33bf..6bcdbf787 100644 --- a/.github/workflows/bootstrap_archives.yml +++ b/.github/workflows/bootstrap_archives.yml @@ -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"