Artifact Usage Instead of Output for ENV Vars
Some checks failed
Run Tests on Code / run-tests (push) Successful in 13s
Build and Release Binary File / run-tests (push) Successful in 7s
Build and Release Binary File / build-linux (push) Successful in 13m5s
Build and Release Binary File / upload-release (push) Failing after 22s

This commit is contained in:
Neshura 2023-11-17 22:04:20 +01:00
parent 7db9c7a244
commit 3674a2cf78
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -39,7 +39,7 @@ jobs:
run: |
. /etc/os-release
echo Debian Codename is: $VERSION_CODENAME
echo "debian_codename=$VERSION_CODENAME" >> $GITHUB_OUTPUT
echo "DEBIAN_CODENAME=$VERSION_CODENAME" >> .env
-
name: Installing Node, NPM
run: |
@ -95,8 +95,12 @@ jobs:
name: linux-amd64-appimage
path: artifacts/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage
if-no-files-found: error
outputs:
debian_codename: ${{ steps.store_deb_ver.outputs.debian_codename }}
-
name: Upload .env as Artifact
uses: actions/upload-artifact@v3
with:
name: build-env
path: .env
upload-release:
needs: [build-linux]
@ -115,6 +119,11 @@ jobs:
ls -lap artifacts/linux-amd64-appimage
ls -lap artifacts/linux-amd64-appimage/linux-amd64-appimage
ls -lap artifacts/linux-amd64-appimage/linux-amd64-appimage/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage
-
name: Load .env from build job
run: |
mv artifacts/build-env/.env ./.env
export $(xargs <.env)
-
name: Rearrange Artifact Paths
run: |
@ -141,10 +150,10 @@ jobs:
run: |
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release/comicinfo-editor-v2-${{ github.ref_name }}-amd64.deb \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/debian/pool/${{ needs.build-linux.outputs.debian_codename }}/main/upload'
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/debian/pool/$DEBIAN_CODENAME/main/upload'
curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release/comicinfo-editor-v2-${{ github.ref_name }}-amd64.deb \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/debian/pool/${{ needs.build-linux.outputs.debian_codename }}/main/upload
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/debian/pool/$DEBIAN_CODENAME/main/upload
-
name: Release New Version
uses: actions/forgejo-release@v1