Skip to content

Commit

Permalink
Updated release script
Browse files Browse the repository at this point in the history
  • Loading branch information
AngaBlue committed Jun 1, 2022
1 parent 34d7f50 commit 586b371
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 51 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/msbuild.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

# The workflow will be run when a commit is tagged with a version number
on:
push:
tags:
- 'v*'

env:
SOLUTION_NAME: DemoDemon

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 }}

0 comments on commit 586b371

Please sign in to comment.