Skip to content

Commit

Permalink
Add release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikel-Arklight committed Apr 22, 2024
1 parent 1eaa5e6 commit c98a102
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Main

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build stand-alone (linux-x64)
run: dotnet publish -c Release -r linux-x64 --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true FactorioModUpdater/FactorioModUpdater.csproj
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
./FactorioModUpdater/bin/Release/net8.0/linux-x64/publish/FactorioModUpdater

0 comments on commit c98a102

Please sign in to comment.