-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
1 changed file
with
40 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,40 @@ | ||
name: Create release | ||
|
||
on: | ||
push: | ||
branches: main | ||
tags: v*.* | ||
|
||
env: | ||
RELEASE_NAME: PCK-Studio | ||
|
||
jobs: | ||
CreateRelease: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v2 | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/setup-nuget@v2 | ||
|
||
- name: Get NuGet Packages | ||
run: nuget restore PCK_Studio.sln | ||
|
||
- name: Build solution | ||
run: "msbuild PCK_Studio.sln -p:Configuration=Release" | ||
|
||
- name: Package binary | ||
run: Compress-Archive -Path ${{ github.workspace }}\\bin\\Release\\* -Destination ${{ env.RELEASE_NAME }}.zip | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: ${{ env.RELEASE_NAME }}.zip | ||
|