-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 1.12 KB
/
publish-server-iis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: WebDeploy Package Generation
on:
release:
types: [ published ]
permissions:
packages: read
contents: write
jobs:
webdeploy-windows:
runs-on: windows-latest
env:
OUTPUT_FILE_NAME: OnionFruit-Web-${{ github.event.release.tag_name }}.zip
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Setup GitHub NuGet
run: dotnet nuget update source dragonfruit --username USERNAME --password ${{ github.token }} --store-password-in-clear-text
- name: Build Server Package
run: dotnet publish -c Release -r win-x64 --self-contained false -p:Version=${{ github.event.release.tag_name }} -p:PublishProfile=IISDeploy.pubxml -p:EnvironmentName=Production -p:ServerPublish=true DragonFruit.OnionFruit.Web
- name: Archive Output
run: Compress-Archive -Path .\DragonFruit.OnionFruit.Web\bin\publish\* -DestinationPath ${{ env.OUTPUT_FILE_NAME }}
- name: Upload Deploy Package
uses: softprops/action-gh-release@v1
with:
files: ${{ env.OUTPUT_FILE_NAME }}