Several Release Action Fixes
Some checks failed
Run Tests on Code / run-tests (push) Successful in 2s
Build and Release Binary File / run-tests (push) Successful in 6s
Build and Release Binary File / build (push) Failing after 2m20s
Build and Release Binary File / upload-release (push) Has been skipped

This commit is contained in:
Neshura 2023-11-17 14:06:31 +01:00
parent 370dc45569
commit 437af73be1
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -22,7 +22,17 @@ jobs:
steps:
-
name: Installing Node, NPM
run: apt update && apt install -y nodejs npm
run: |
apt update
apt install -y \
nodejs npm
libwebkit2gtk-4.0-dev \
build-essential \
file \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev
-
name: Installing Yarn, Vite
run: npm install --global yarn vite
@ -39,14 +49,16 @@ jobs:
name: Compiling To Linux Target
run: |
cargo tauri build
mv target/release/comicinfo-editor-v2.deb comicinfo-editor-v2-linux-amd64.deb
mv target/release/comicinfo-editor-v2.AppImage comicinfo-editor-v2-linux-amd64.AppImage
mv src-tauri/target/release/comicinfo-editor-v2 comicinfo-editor-v2
mv src-tauri/target/release/bundle/comicinfo-editor-v2.deb comicinfo-editor-v2-linux-amd64.deb
mv src-tauri/target/release/bundle/comicinfo-editor-v2.AppImage comicinfo-editor-v2-linux-amd64.AppImage
-
name: Uploading Build Artifact
uses: actions/upload-artifact@v3
with:
name: comicinfo-editor-v2-linux-amd64
path: |
comicinfo-editor-v2-linux-amd64
comicinfo-editor-v2-linux-amd64.deb
comicinfo-editor-v2-linux-amd64.AppImage
if-no-files-found: error
@ -67,6 +79,13 @@ jobs:
-
name: Upload Artifacts As Generic Packages
run: |
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release/comicinfo-editor-v2-linux-amd64 \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/comicinfo-editor-v2-linux-amd64'
curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release/comicinfo-editor-v2-linux-amd64 \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/comicinfo-editor-v2-linux-amd64
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release/comicinfo-editor-v2-linux-amd64.deb \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/comicinfo-editor-v2-linux-amd64.deb'