-
-
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.
[GitHub Actions] リリースを作成したタイミングでビルドし、ZIPアーカイブ化しリリースページへ添付するように
- Loading branch information
1 parent
c02da1d
commit 77ad895
Showing
4 changed files
with
46 additions
and
1 deletion.
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
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,34 @@ | ||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
contents: write | ||
runs-on: windows-2022 | ||
steps: | ||
- name: メインブランチをチェックアウト | ||
uses: actions/checkout@v3 | ||
|
||
- uses: microsoft/setup-msbuild@1ff57057b5cfdc39105cd07a01d78e9b0ea0c14c #v1.3.1 | ||
|
||
- name: バージョン番号の取得 | ||
id: version | ||
run: | | ||
"version=$('${{ github.event.release.tag_name }}' -replace 'v', '')" >> $env:GITHUB_OUTPUT | ||
- name: 依存関係の解決 | ||
run: MSBuild -target:Restore | ||
|
||
- name: ビルド | ||
run: MSBuild -property:Configuration=Release -property:OutputPath=./bin -property:Version=${{ steps.version.outputs.version }} | ||
|
||
- name: アーカイブ化 | ||
run: Compress-Archive ./bin/* -DestinationPath 'ncv-voicevox-${{ steps.version.outputs.version }}.zip' | ||
|
||
- name: リリースページへ添付 | ||
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 #v0.1.15 | ||
with: | ||
files: ./*.zip |
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,6 @@ | ||
{ | ||
"recommendations": [ | ||
"editorconfig.editorconfig", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} |
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,3 @@ | ||
{ | ||
"editor.rulers": [ 120 ] | ||
} |