diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml new file mode 100644 index 0000000..b7f5024 --- /dev/null +++ b/.github/workflows/tag-release.yml @@ -0,0 +1,41 @@ +name: Release + +on: + push: + tags: + - "*" + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild + - name: Setup MSBuild.exe + uses: microsoft/setup-msbuild@v2 + + - name: Restore NuGet Packages + run: msbuild Andraste.UILauncher.csproj /t:Restore + + - name: Build project + run: msbuild Andraste.UILauncher.csproj /p:Configuration=Release /p:Platform=x86 /t:Build + + - name: Zip Release Bundle + uses: vimtor/action-zip@v1.2 + with: + files: bin\Release\net48\ + dest: Andraste-Payload-Generic-${{ github.ref_name }}.zip + + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + files: Andraste-Payload-Generic-${{ github.ref_name }}.zip + tag_name: ${{ github.ref }} + name: Release ${{ github.ref }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file