Bump version #26
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 & Release | |
concurrency: | |
group: "build" | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- '**.js' | |
- '**.ps1' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Checkout XSO assemblies | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ secrets.xsoRepo }} | |
token: ${{ secrets.repoToken }} | |
path: refs | |
- name: Setup .NET | |
uses: actions/[email protected] | |
with: | |
dotnet-version: '7.0.x' | |
- name: Add Bepis NuGet & Restore dependencies | |
run: | | |
dotnet nuget add source https://nuget.bepinex.dev/v3/index.json | |
dotnet restore | |
- name: Build | |
run: dotnet build -c Release --no-restore | |
- name: Tag version | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Release | |
run: | | |
$short_sha="${{ github.sha }}".Substring(0,7) | |
gh release create ${{ steps.tag_version.outputs.new_tag }}-$short_sha ./builds/Release/net472/KeyboardOSC.dll ./BepInEx.cfg --title "KeyboardOSC Build $short_sha" --prerelease --notes "${{ steps.tag_version.outputs.changelog }}" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |