From fc8b370bf9438afda4df0b51dff08b5be488f01d Mon Sep 17 00:00:00 2001 From: Albie Spriddell Date: Sun, 3 Nov 2024 19:17:19 +0000 Subject: [PATCH] add publish workflow --- .github/workflows/publish.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..862ed28 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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