-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 878 Bytes
/
publish.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
name: publish demo
on:
push:
branches: [ "master","develop" ]
tags:
- "v*.*.*"
jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Make upload directory
run: mkdir upload
- name: Publish win-x64
run: dotnet publish ./src/VirtualStreetSnap -c Release -r win-x64 --self-contained -p:PublishAot=true
- name: Zip win-x64
run: |
$files = Get-ChildItem -Path ./src/VirtualStreetSnap/bin/Release/net8.0/win-x64/publish/* -Recurse -Exclude *.pdb
Compress-Archive -Path $files.FullName -DestinationPath ./upload/VirtualStreetSnap.win-x64.zip
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: VirtualStreetSnap
path: ./upload/VirtualStreetSnap.win-x64.zip