This commit is contained in:
parent
fbe022e4be
commit
93b2eb136e
1 changed files with 29 additions and 0 deletions
29
.forgejo/workflows/publish.yaml
Normal file
29
.forgejo/workflows/publish.yaml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: Server AOT Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
|
||||
runs-on: dotnet:host
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
|
||||
- name: Publish Native AOT
|
||||
|
||||
run: dotnet publish ./LarpixServer/LarpixServer.csproj -r linux-x64 -c Release -o ./publish
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: native-binary
|
||||
path: ./publish/
|
||||
Loading…
Add table
Add a link
Reference in a new issue