Artifact Usage Instead of Output for ENV Vars
Some checks failed
Some checks failed
This commit is contained in:
parent
7db9c7a244
commit
3674a2cf78
1 changed files with 14 additions and 5 deletions
|
@ -39,7 +39,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
echo Debian Codename is: $VERSION_CODENAME
|
echo Debian Codename is: $VERSION_CODENAME
|
||||||
echo "debian_codename=$VERSION_CODENAME" >> $GITHUB_OUTPUT
|
echo "DEBIAN_CODENAME=$VERSION_CODENAME" >> .env
|
||||||
-
|
-
|
||||||
name: Installing Node, NPM
|
name: Installing Node, NPM
|
||||||
run: |
|
run: |
|
||||||
|
@ -95,8 +95,12 @@ jobs:
|
||||||
name: linux-amd64-appimage
|
name: linux-amd64-appimage
|
||||||
path: artifacts/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage
|
path: artifacts/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage
|
||||||
if-no-files-found: error
|
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:
|
upload-release:
|
||||||
needs: [build-linux]
|
needs: [build-linux]
|
||||||
|
@ -115,6 +119,11 @@ jobs:
|
||||||
ls -lap artifacts/linux-amd64-appimage
|
ls -lap artifacts/linux-amd64-appimage
|
||||||
ls -lap artifacts/linux-amd64-appimage/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
|
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
|
name: Rearrange Artifact Paths
|
||||||
run: |
|
run: |
|
||||||
|
@ -141,10 +150,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
|
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
|
||||||
--upload-file release/comicinfo-editor-v2-${{ github.ref_name }}-amd64.deb \
|
--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 }} \
|
curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
|
||||||
--upload-file release/comicinfo-editor-v2-${{ github.ref_name }}-amd64.deb \
|
--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
|
name: Release New Version
|
||||||
uses: actions/forgejo-release@v1
|
uses: actions/forgejo-release@v1
|
||||||
|
|
Reference in a new issue