# name of your github action name: Deploy Release # this will help you specify where to run on: workflow_dispatch: push: tags: - v* # 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 }} 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 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 npm run publish-win-app