Several Release Action Fixes
Some checks failed
Some checks failed
This commit is contained in:
parent
370dc45569
commit
437af73be1
1 changed files with 22 additions and 3 deletions
|
@ -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'
|
||||
|
|
Reference in a new issue