1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-02 19:17:25 +01:00
upscayl/.github/workflows/main.yml

66 lines
1.9 KiB
YAML
Raw Normal View History

2022-09-29 17:39:09 +02:00
# name of your github action
2023-05-09 11:41:00 +02:00
name: Deploy Release
2022-12-22 13:10:23 +01:00
# this will help you specify where to run
2022-09-29 17:39:09 +02:00
on:
workflow_dispatch:
# this is where the magic happens, each job happens in parallel btw
jobs:
linux:
2023-05-09 11:41:00 +02:00
runs-on: ubuntu-20.04
2022-09-29 17:39:09 +02:00
steps:
2022-12-22 13:10:23 +01:00
- uses: actions/checkout@v3
- uses: actions/setup-node@v3.5.0
with:
2024-04-22 09:30:27 +02:00
node-version: 18
2022-12-22 13:10:23 +01:00
- name: Install Modules and Publish build
run: |
sudo apt-get install elfutils -y
2022-12-22 22:25:15 +01:00
sudo apt install rpm
2023-09-13 16:28:39 +02:00
npm install -g node-gyp
2022-12-22 13:10:23 +01:00
npm install
2023-09-13 16:28:39 +02:00
rm -rf node_modules/sharp
SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install --arch=x64 --platform=linux --libc=glibc --build-from-source sharp
2022-12-22 13:10:23 +01:00
GH_TOKEN=${{ secrets.GITHUB_TOKEN }} npm run publish-linux-app
2022-09-29 17:39:09 +02:00
macos:
2023-05-09 11:41:00 +02:00
runs-on: macos-11
2023-09-21 08:23:36 +02:00
env:
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
APPLEID: ${{ secrets.APPLEID }}
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
2023-09-21 10:53:40 +02:00
TEAMID: ${{ secrets.TEAMID }}
2023-09-21 08:23:36 +02:00
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2023-10-15 07:27:13 +02:00
PROVISION_PROFILE: ${{ secrets.PROVISION_PROFILE }}
2022-12-22 13:10:23 +01:00
steps:
2022-09-29 17:42:45 +02:00
- uses: actions/checkout@v3
- uses: actions/setup-node@v3.5.0
2022-09-29 17:39:09 +02:00
with:
2024-04-22 09:30:27 +02:00
node-version: 18
2022-09-29 17:39:09 +02:00
- name: Install Modules and Publish build
run: |
npm install
2023-09-13 18:12:38 +02:00
rm -rf node_modules/sharp
2023-10-15 07:27:13 +02:00
echo -n "$PROVISION_PROFILE" | base64 --decode > embedded.provisionprofile
2023-09-13 18:12:38 +02:00
npm install --platform=darwin --arch=x64 sharp
npm rebuild --platform=darwin --arch=arm64 sharp
2024-01-15 20:25:25 +01:00
npm run publish-mac-universal-app
2022-12-22 13:10:23 +01:00
2022-09-30 12:30:23 +02:00
windows:
2022-12-22 13:10:23 +01:00
runs-on: windows-latest
steps:
2022-09-29 17:42:45 +02:00
- uses: actions/checkout@v3
2022-12-22 13:10:23 +01:00
2022-09-29 17:42:45 +02:00
- uses: actions/setup-node@v3.5.0
2022-09-29 17:39:09 +02:00
with:
2024-04-22 09:30:27 +02:00
node-version: 18
2022-12-22 13:10:23 +01:00
2022-09-29 17:39:09 +02:00
- name: Install Modules and Publish build
2022-09-30 12:30:23 +02:00
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2022-09-29 17:39:09 +02:00
run: |
npm install
2022-09-30 12:30:23 +02:00
npm run publish-win-app