forked from stakira/OpenUtau
-
Notifications
You must be signed in to change notification settings - Fork 28
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
ddfa1fb
commit eabc74a
Showing
1 changed file
with
42 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,42 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version Number' | ||
default: '0.0.0.0' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
release: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ 'windows-latest' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: restore x64 | ||
run: dotnet restore OpenUtau -r win-x64 | ||
|
||
- name: build x64 | ||
run: dotnet publish OpenUtau -c Release -r win-x64 --self-contained true -o bin/win-x64 /p:version=${{ inputs.version }} | ||
|
||
- name: compress x64 | ||
run: 7z a OpenUtau-x64-${{ inputs.version }}.zip ./bin/win-x64/* | ||
|
||
- name: Upload artifact x64 | ||
uses: actions/[email protected] | ||
with: | ||
name: OpenUtau-x64-${{ inputs.version }}.zip | ||
path: OpenUtau-x64-${{ inputs.version }}.zip | ||
|
||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ inputs.version }} | ||
files: | | ||
OpenUtau-x64-${{ inputs.version }}.zip | ||