Skip to content

Deploy Release

Deploy Release #86

Workflow file for this run

# 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
GH_TOKEN=${{ secrets.GITHUB_TOKEN }} npm run publish-linux-app
macos:
runs-on: macos-11
env:
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
APPLEID: ${{ secrets.APPLEID }}
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
TEAMID: ${{ secrets.TEAMID }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PROVISION_PROFILE: ${{ secrets.PROVISION_PROFILE }}
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
echo -n "$PROVISION_PROFILE" | base64 --decode > embedded.provisionprofile
npm install --platform=darwin --arch=x64 sharp
npm rebuild --platform=darwin --arch=arm64 sharp
npm run publish-mac-universal-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
npm run publish-win-app