Skip to content

Merge pull request #55 from axel7083/feature/prevent-non-europe-rom-t… #7

Merge pull request #55 from axel7083/feature/prevent-non-europe-rom-t…

Merge pull request #55 from axel7083/feature/prevent-non-europe-rom-t… #7

Workflow file for this run

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