-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca6027d
commit 9aa2a47
Showing
23 changed files
with
263 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version (e.g. v1.2.3)' | ||
required: true | ||
type: string | ||
push: | ||
tags: | ||
- v*.*.* | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-13, macos-latest] | ||
arch: [x64, arm64] | ||
exclude: | ||
- os: windows-latest | ||
arch: arm64 | ||
- os: macos-latest | ||
arch: x64 | ||
- os: macos-13 | ||
arch: arm64 | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
arch: ${{ matrix.arch }} | ||
|
||
- name: Install corepack | ||
run: corepack enable && corepack prepare yarn@4.3.1 --activate | ||
|
||
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Build Linux | ||
if: matrix.os == 'ubuntu-latest' | ||
run: yarn build:linux | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
ARCH: ${{ matrix.arch }} | ||
|
||
- name: Build Mac | ||
if: matrix.os == 'macos-13' | ||
run: yarn build:mac | ||
env: | ||
CSC_LINK: ${{ secrets.CSC_LINK }} | ||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | ||
APPLE_ID: ${{ vars.APPLE_ID }} | ||
APPLE_APP_SPECIFIC_PASSWORD: ${{ vars.APPLE_APP_SPECIFIC_PASSWORD }} | ||
APPLE_TEAM_ID: ${{ vars.APPLE_TEAM_ID }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
ARCH: ${{ matrix.arch }} | ||
|
||
- name: Build Windows | ||
if: matrix.os == 'windows-latest' | ||
run: yarn build:win | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
ARCH: ${{ matrix.arch }} | ||
|
||
- name: Replace spaces in filenames | ||
run: node scripts/replaceSpaces.js | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
draft: true | ||
files: | | ||
dist/*.exe | ||
dist/*.zip | ||
dist/*.dmg | ||
dist/*.AppImage | ||
dist/*.snap | ||
dist/*.deb | ||
dist/*.rpm | ||
dist/*.tar.gz | ||
dist/latest*.yml | ||
dist/*.blockmap | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 0 additions & 53 deletions
53
.yarn/patches/@electron-notarize-npm-2.3.2-535908a4bd.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.