Skip to content

The keyboard can now go on your head #25

The keyboard can now go on your head

The keyboard can now go on your head #25

Workflow file for this run

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/setup-dotnet@v3.2.0
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/github-tag-action@v6.1
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 }}