1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-27 17:00:52 +01:00

Merge pull request #95 from JanDeDinoMan/ci_cd

Make CI pass
This commit is contained in:
NayamAmarshe 2022-09-30 21:15:32 +05:30 committed by GitHub
commit 81bcce59cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View File

@ -19,10 +19,10 @@ jobs:
sudo apt-get install flatpak -y
sudo apt-get install flatpak-builder -y
sudo apt-get install elfutils -y
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install flathub org.freedesktop.Platform/x86_64/20.08 org.freedesktop.Sdk/x86_64/20.08 org.electronjs.Electron2.BaseApp/x86_64/stable -y
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.freedesktop.Platform/x86_64/20.08 org.freedesktop.Sdk/x86_64/20.08 org.electronjs.Electron2.BaseApp/x86_64/stable -y
npm install
GH_TOKEN=${{ secrets.GH_TOKEN }} && npm run publish-linux-app
GH_TOKEN=${{ secrets.GITHUB_TOKEN }} npm run publish-linux-app
macos:
runs-on: macOS-latest
@ -36,9 +36,9 @@ jobs:
- name: Install Modules and Publish build
run: |
npm install
GH_TOKEN=${{ secrets.GH_TOKEN }} && npm run publish-mac-app
GH_TOKEN=${{ secrets.GITHUB_TOKEN }} npm run publish-mac-app
windo:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
@ -48,6 +48,8 @@ jobs:
node-version: 16
- name: Install Modules and Publish build
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install
GH_TOKEN=${{ secrets.GH_TOKEN }} && npm run publish-win-app
npm run publish-win-app

View File

@ -43,7 +43,7 @@
"dist:msi": "npm run build && DEBUG=* electron-builder build -w nsis",
"dist:pkg": "npm run build && DEBUG=* electron-builder build -m pkg",
"publish-app": "npm run build && electron-builder -wl --publish always",
"publish-linux-app": "DEBUG=* npm run build && electron-builder -l --publish always",
"publish-linux-app": "npm run build && electron-builder -l --publish always",
"publish-win-app": "npm run build && electron-builder -w --publish always",
"publish-mac-app": "npm run build && electron-builder -m --publish always"
},