2022-01-03 15:15:59 +01:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
2023-05-01 16:39:38 +02:00
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
2022-01-03 15:15:59 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
release-linux:
|
|
|
|
runs-on: ubuntu-latest
|
2023-05-01 16:39:38 +02:00
|
|
|
timeout-minutes: 40
|
2022-01-03 15:15:59 +01:00
|
|
|
|
2023-05-01 17:46:44 +02:00
|
|
|
env:
|
|
|
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
|
|
|
|
|
2022-01-03 15:15:59 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2022-11-26 09:56:19 +01:00
|
|
|
node-version: '18'
|
2022-01-03 15:15:59 +01:00
|
|
|
cache: yarn
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
make install
|
|
|
|
make clean
|
|
|
|
make build
|
2023-05-01 16:39:38 +02:00
|
|
|
|
2023-05-01 17:28:47 +02:00
|
|
|
- name: Install Snapcraft
|
|
|
|
uses: samuelmeuli/action-snapcraft@v2
|
2023-05-01 16:39:38 +02:00
|
|
|
|
|
|
|
- name: Release
|
|
|
|
uses: samuelmeuli/action-electron-builder@v1
|
2022-01-03 17:51:40 +01:00
|
|
|
with:
|
2023-05-01 16:39:38 +02:00
|
|
|
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 }}
|
2022-01-03 15:15:59 +01:00
|
|
|
|
2023-05-01 16:39:38 +02:00
|
|
|
# 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') }}
|
2022-01-03 15:15:59 +01:00
|
|
|
|
2023-05-01 16:39:38 +02:00
|
|
|
release-windows:
|
2022-01-03 15:15:59 +01:00
|
|
|
runs-on: windows-latest
|
2023-05-01 16:39:38 +02:00
|
|
|
timeout-minutes: 40
|
2022-01-03 15:15:59 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2022-11-26 09:56:19 +01:00
|
|
|
node-version: '18'
|
2022-01-03 15:15:59 +01:00
|
|
|
cache: yarn
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
make install
|
|
|
|
make clean
|
|
|
|
make build
|
2023-05-01 16:39:38 +02:00
|
|
|
|
|
|
|
- name: Release
|
|
|
|
uses: samuelmeuli/action-electron-builder@v1
|
2023-01-30 16:34:01 +01:00
|
|
|
with:
|
2023-05-01 16:39:38 +02:00
|
|
|
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') }}
|
2022-01-03 15:15:59 +01:00
|
|
|
|
|
|
|
|
2023-05-01 16:39:38 +02:00
|
|
|
release-macos:
|
2023-03-08 07:43:16 +01:00
|
|
|
runs-on: macos-latest
|
2023-05-01 16:39:38 +02:00
|
|
|
timeout-minutes: 40
|
2022-01-03 15:15:59 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2022-11-26 09:56:19 +01:00
|
|
|
node-version: '18'
|
2022-01-03 15:15:59 +01:00
|
|
|
cache: yarn
|
2023-05-01 16:39:38 +02:00
|
|
|
|
2022-01-03 15:15:59 +01:00
|
|
|
- name: Apple Codesigning
|
|
|
|
uses: apple-actions/import-codesign-certs@v1
|
|
|
|
with:
|
|
|
|
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
|
|
|
|
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
|
2023-05-01 16:39:38 +02:00
|
|
|
|
2022-01-03 15:15:59 +01:00
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
make install
|
|
|
|
make clean
|
|
|
|
make build
|
2023-05-01 16:39:38 +02:00
|
|
|
|
|
|
|
- name: Release
|
|
|
|
uses: samuelmeuli/action-electron-builder@v1
|
2022-01-03 15:15:59 +01:00
|
|
|
env:
|
|
|
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
2023-03-08 07:43:16 +01:00
|
|
|
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
2022-01-03 15:15:59 +01:00
|
|
|
ASC_PROVIDER: ${{ secrets.ASC_PROVIDER }}
|
|
|
|
TEAM_ID: ${{ secrets.ASC_PROVIDER }}
|
2022-01-03 17:51:40 +01:00
|
|
|
with:
|
2023-05-01 16:39:38 +02:00
|
|
|
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') }}
|