Skip to content

Merge pull request #2 from hk-modding/SFGrenade-patch-1 #13

Merge pull request #2 from hk-modding/SFGrenade-patch-1

Merge pull request #2 from hk-modding/SFGrenade-patch-1 #13

Workflow file for this run

name: .NET
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore -r linux-x64
- name: Build
run: |
dotnet publish -r linux-x64 -p:PublishSingleFile=true -p:Configuration=Release --no-self-contained
cd ..
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
name: linux
path: bin/Release/net6.0/linux-x64/publish/
release:
needs: [build]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: ./artifacts
- name: Zip
run: |
chmod +x ./artifacts/linux/ModlinksShaVerifier
zip -jr linux.zip ./artifacts/linux/*
- name: Create release if a new tag is pushed
uses: softprops/action-gh-release@v2
with:
files: |
./linux.zip