Skip to content

Commit

Permalink
chore(ci): リリースのワークフローを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
SlashNephy committed May 13, 2022
1 parent 6711927 commit 559efa6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build

on:
push:
paths:
- 'SimpleVoiceroid2Proxy/**'

workflow_dispatch:

Expand All @@ -22,5 +24,19 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: SimpleVoiceroid2Proxy.zip
name: SimpleVoiceroid2Proxy
if-no-files-found: error
path: SimpleVoiceroid2Proxy/bin/Release

- name: Create Release
shell: powershell
if: startsWith(github.ref, 'refs/tags/')
run: Compress-Archive -Path SimpleVoiceroid2Proxy/bin/Release/* -DestinationPath SimpleVoiceroid2Proxy.zip

- name: Upload Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: SimpleVoiceroid2Proxy.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 559efa6

Please sign in to comment.