Skip to content

Commit

Permalink
Add workflow for build and releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Dextinfire committed Aug 25, 2024
1 parent e92f64f commit d5add83
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Release

on:
push:
tags:
- 'v*.*.*' # Triggers on version tags

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0'

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Publish
run: dotnet publish --configuration Release --no-build --output ./output

- name: Zip Files
run: zip -r mgsscripttools.zip ./output/*

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: mgsscripttools.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d5add83

Please sign in to comment.