Whalebird-desktop-client-ma.../.github/workflows/release.yml

111 lines
3.0 KiB
YAML
Raw Normal View History

name: Release
on:
2023-05-01 16:39:38 +02:00
push:
tags:
- 'v*'
jobs:
release-linux:
runs-on: ubuntu-latest
2023-05-01 16:39:38 +02:00
timeout-minutes: 40
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
2022-11-26 09:56:19 +01:00
node-version: '18'
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
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 }}
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') }}
2023-05-01 16:39:38 +02:00
release-windows:
runs-on: windows-latest
2023-05-01 16:39:38 +02:00
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
2022-11-26 09:56:19 +01:00
node-version: '18'
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') }}
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
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
2022-11-26 09:56:19 +01:00
node-version: '18'
cache: yarn
2023-05-01 16:39:38 +02: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
- 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
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
2023-03-08 07:43:16 +01:00
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
ASC_PROVIDER: ${{ secrets.ASC_PROVIDER }}
TEAM_ID: ${{ secrets.ASC_PROVIDER }}
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') }}