111 lines
3.0 KiB
YAML
111 lines
3.0 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
release-linux:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 40
|
|
|
|
env:
|
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '18'
|
|
cache: yarn
|
|
- name: Build
|
|
run: |
|
|
make install
|
|
make clean
|
|
make build
|
|
|
|
- name: Install Snapcraft
|
|
uses: samuelmeuli/action-snapcraft@v2
|
|
|
|
- name: Release
|
|
uses: samuelmeuli/action-electron-builder@v1
|
|
with:
|
|
skip_build: true
|
|
# GitHub token, automatically provided to the action
|
|
# (No need to define this secret in the repo settings)
|
|
github_token: ${{ secrets.github_token }}
|
|
|
|
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
|
# release the app after building
|
|
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
|
|
|
release-windows:
|
|
runs-on: windows-latest
|
|
timeout-minutes: 40
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '18'
|
|
cache: yarn
|
|
- name: Build
|
|
run: |
|
|
make install
|
|
make clean
|
|
make build
|
|
|
|
- name: Release
|
|
uses: samuelmeuli/action-electron-builder@v1
|
|
with:
|
|
skip_build: true
|
|
# GitHub token, automatically provided to the action
|
|
# (No need to define this secret in the repo settings)
|
|
github_token: ${{ secrets.github_token }}
|
|
|
|
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
|
# release the app after building
|
|
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
|
|
|
|
|
release-macos:
|
|
runs-on: macos-latest
|
|
timeout-minutes: 40
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '18'
|
|
cache: yarn
|
|
|
|
- name: Apple Codesigning
|
|
uses: apple-actions/import-codesign-certs@v1
|
|
with:
|
|
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
|
|
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
|
|
|
|
- name: Build
|
|
run: |
|
|
make install
|
|
make clean
|
|
make build
|
|
|
|
- name: Release
|
|
uses: samuelmeuli/action-electron-builder@v1
|
|
env:
|
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
|
ASC_PROVIDER: ${{ secrets.ASC_PROVIDER }}
|
|
TEAM_ID: ${{ secrets.ASC_PROVIDER }}
|
|
with:
|
|
skip_build: true
|
|
# GitHub token, automatically provided to the action
|
|
# (No need to define this secret in the repo settings)
|
|
github_token: ${{ secrets.github_token }}
|
|
|
|
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
|
# release the app after building
|
|
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|