Skip to content

Commit

Permalink
add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Nov 3, 2024
1 parent ff69fcf commit fc8b370
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish

on:
release:
types: [ published ]

jobs:
publish:
name: "Build, Archive & Upload"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

- name: Restore
run: dotnet restore

- name: Build
run: dotnet publish -c Release --no-self-contained -p:Version=${{ github.event.release.tag_name }} -p:DebugType=None -p:UseAppHost=false -o ./pub-out

- name: Archive
run: zip onionfruit-deploy.zip -r ./pub-out

- name: Upload
uses: softprops/action-gh-release@v2
with:
files: onionfruit-deploy.zip

0 comments on commit fc8b370

Please sign in to comment.