1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-02-15 02:12:34 +01:00

69 lines
2.0 KiB
YAML
Raw Normal View History

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