fix: auto refresh button #6
Workflow file for this run
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
name: Build and Release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- '*' | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup MSBuild.exe | |
uses: microsoft/[email protected] | |
- name: Update AssemblyInfo.cs with version from tag | |
run: | | |
(Get-Content Properties/AssemblyInfo.cs) | ForEach-Object { | |
$_ -replace 'AssemblyInformationalVersion\(".*"\)', "AssemblyInformationalVersion(`"$env:GITHUB_REF_NAME`")" ` | |
-replace 'AssemblyCodeSource\(".*"\)', "AssemblyCodeSource(`"$env:GITHUB_REPOSITORY`")" | |
} | Set-Content Properties/AssemblyInfo.cs | |
- name: MSBuild | |
working-directory: . | |
run: msbuild SM64DSe.csproj -p:Configuration=Release | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: bin/release.zip |