From 7b7b55de0d4dd582c921c38217730b9f4cd9ac3f Mon Sep 17 00:00:00 2001 From: Neshura Date: Fri, 29 Dec 2023 03:43:59 +0100 Subject: [PATCH] Split upload phase --- .forgejo/workflows/build+release.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build+release.yml b/.forgejo/workflows/build+release.yml index 170209f..c8aaede 100644 --- a/.forgejo/workflows/build+release.yml +++ b/.forgejo/workflows/build+release.yml @@ -76,7 +76,7 @@ jobs: path: dist if-no-files-found: error - upload-release: + upload-generic-package: needs: build if: success() runs-on: docker @@ -93,6 +93,15 @@ jobs: curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \ --upload-file release_blobs/${{ github.event.repository.name }}-linux-amd64 \ https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/chellaris-rust-api-linux-amd64 + + upload-debian-package: + needs: build + if: success() + runs-on: docker + steps: + - + name: Downloading All Build Artifacts + uses: actions/download-artifact@v3 - name: Upload Debian Package to staging run: | @@ -115,6 +124,14 @@ jobs: --upload-file release_blobs/${{ github.event.repository.name }}_"$DEBIAN_REF""$DEBIAN_REV"_amd64.deb \ https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/debian/pool/bookworm/main/upload + create-release: + needs: build + if: success() + runs-on: docker + steps: + - + name: Downloading All Build Artifacts + uses: actions/download-artifact@v3 - name: Release New Version uses: actions/forgejo-release@v1