Update release.yml #8
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: Release | |
# The workflow will be run when a commit is tagged with a version number | |
on: | |
push: | |
tags: | |
- 'v*' | |
env: | |
SOLUTION_NAME: lobby-ranks | |
permissions: | |
contents: write | |
packages: write | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v3 | |
with: | |
path: plugin | |
- name: Clone BakkesmodSDK | |
uses: actions/checkout@v3 | |
with: | |
repository: bakkesmodorg/BakkesModSDK | |
path: plugin\bakkesmodsdk | |
- name: Add MSBuild to PATH | |
uses: microsoft/setup-msbuild@v1.0.2 | |
- name: Build | |
run: msbuild /m /p:Configuration=Release /p:BakkesModPath=$env:GITHUB_WORKSPACE\plugin /p:Environment=GitHub $env:GITHUB_WORKSPACE\plugin\${{ env.SOLUTION_NAME }}.sln | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ${{ github.workspace }}\plugin\plugins\${{ env.SOLUTION_NAME }}.dll | |
env: | |
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} |