forked from ebkr/r2modmanPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
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
7dd560d
commit 6b37d12
Showing
3 changed files
with
65 additions
and
0 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,58 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
name: Release for ${{ matrix.platform }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- kind: linux | ||
os: ubuntu-latest | ||
platform: linux | ||
- kind: windows | ||
os: windows-latest | ||
platform: win | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
# The talk on the street says this might be a good version for building. | ||
node-version: 14.20.1 | ||
cache: yarn | ||
|
||
- name: Install Yarn dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- if: matrix.platform == 'linux' | ||
name: Install bsdtar # Required by electron-builder when targeting pacman. | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y libarchive-tools | ||
- name: Release project | ||
id: build | ||
uses: StarUbiquitous/command-output@v1.0.1 | ||
with: | ||
run: yarn publish-${{ matrix.platform }} | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- if: steps.build.outputs.stderr != '' | ||
name: Log stderr | ||
continue-on-error: true | ||
run: echo '${{ steps.build.outputs.stderr }}' | ||
|
||
# Creating Electron executables can in some cases fail with exit code 0. | ||
# Check the output of build step for obvious signs of failure. | ||
- if: contains(steps.build.outputs.stderr, '[FAIL]') | ||
name: Check STDERR for trouble | ||
uses: actions/github-script@v6 | ||
with: | ||
script: core.setFailed('It seems the build process failed silently. See previous step for more info.') |
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