mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-28 09:20:52 +01:00
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
# name of your github action
|
|
name: Deploy Release
|
|
# this will help you specify where to run
|
|
on:
|
|
workflow_dispatch:
|
|
# this is where the magic happens, each job happens in parallel btw
|
|
jobs:
|
|
linux:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3.5.0
|
|
with:
|
|
node-version: 16
|
|
|
|
- name: Install Modules and Publish build
|
|
run: |
|
|
sudo apt-get install elfutils -y
|
|
sudo apt install rpm
|
|
npm install -g node-gyp
|
|
npm install
|
|
rm -rf node_modules/sharp
|
|
SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install --arch=x64 --platform=linux --libc=glibc --build-from-source sharp
|
|
./node_modules/.bin/electron-rebuild
|
|
GH_TOKEN=${{ secrets.GITHUB_TOKEN }} npm run publish-linux-app
|
|
|
|
macos:
|
|
runs-on: macos-11
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3.5.0
|
|
with:
|
|
node-version: 16
|
|
|
|
- name: Install Modules and Publish build
|
|
run: |
|
|
npm install
|
|
rm -rf node_modules/sharp
|
|
npm install --platform=darwin --arch=x64 sharp
|
|
npm rebuild --platform=darwin --arch=arm64 sharp
|
|
GH_TOKEN=${{ secrets.GITHUB_TOKEN }} npm run publish-mac-app
|
|
|
|
windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3.5.0
|
|
with:
|
|
node-version: 16
|
|
|
|
- name: Install Modules and Publish build
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
npm install
|
|
./node_modules/.bin/electron-rebuild
|
|
npm run publish-win-app
|