forked from Hiram-Wong/ZyPlayer
-
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
Hiram
committed
Feb 16, 2023
1 parent
80218f5
commit add7510
Showing
1 changed file
with
20 additions
and
14 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 |
---|---|---|
@@ -1,9 +1,6 @@ | ||
name: release-build | ||
name: Build/release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v*.*.* | ||
on: push | ||
|
||
jobs: | ||
release: | ||
|
@@ -14,14 +11,23 @@ jobs: | |
os: [windows-latest, macos-latest, ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
- name: Install Node.js, NPM and Yarn | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
node-version: 16 | ||
- name: Build/release Electron app | ||
uses: samuelmeuli/[email protected] | ||
with: | ||
# 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') }} | ||
|
||
skip_build: true | ||
|
||
- run: | | ||
yarn | ||
yarn release | ||
shell: pwsh | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
use_vue_cli: true |