Skip to content

pin electron version #22

pin electron version

pin electron version #22

Workflow file for this run

name: Electron build
on:
push:
tags:
- client-*
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: 'yarn'
- run: yarn build-electron && yarn dist
working-directory: ./client
- uses: actions/upload-artifact@v3
with:
name: release-linux
path: ./client/release/*/*.snap
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: 'yarn'
- run: yarn build-electron && yarn dist
working-directory: ./client
shell: bash
- uses: actions/upload-artifact@v3
with:
name: release-windows
path: ./client/release/*/*.exe
build-mac:
runs-on: macos-latest
env:
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
APPLEID: ${{ secrets.APPLEID }}
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
APPLETEAMID: ${{ secrets.APPLETEAMID }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: 'yarn'
- run: yarn build-electron && yarn dist
working-directory: ./client
- uses: actions/upload-artifact@v3
with:
name: release-mac
path: ./client/release/*/*.dmg
upload:
runs-on: ubuntu-latest
needs:
- build-linux
- build-mac
- build-windows
steps:
- uses: actions/download-artifact@v3
- run: |
mkdir -p build
cp release-mac/**/*.dmg build/
cp release-linux/**/*.snap build/
cp release-windows/**/*.exe build/
mkdir -p win-portable
mkdir -p win-installer
cp build/*_portable.exe win-portable/
cp build/*_installer.exe win-installer/
- run: |
export TAG=$(echo $GITHUB_REF_NAME | sed 's/client-//')
echo "TAG=$TAG" >> $GITHUB_ENV
- uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: windows-installer
ITCH_GAME: buzzwords
ITCH_USER: chuckdries
PACKAGE: win-installer
VERSION: ${{ env.TAG }}
- uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: windows-portable
ITCH_GAME: buzzwords
ITCH_USER: chuckdries
PACKAGE: win-portable
VERSION: ${{ env.TAG }}
# - uses: manleydev/butler-publish-itchio-action@master
# env:
# BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
# CHANNEL: linux
# ITCH_GAME: buzzwords
# ITCH_USER: chuckdries
# PACKAGE: release-linux
# VERSION: ${{ env.TAG }}
- uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: osx
ITCH_GAME: buzzwords
ITCH_USER: chuckdries
PACKAGE: release-mac
VERSION: ${{ env.TAG }}
- name: Release
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_COMPRESS: zip
GHR_PATH: build/
GHR_DELETE: false
GHR_REPLACE: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}