-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (46 loc) · 1.22 KB
/
win.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
name: Windows CI
on:
push:
workflow_dispatch:
pull_request:
release:
types: [published]
jobs:
build:
strategy:
matrix:
os: [windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
with:
submodules: 'recursive'
- name: "Install .NET"
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: "Build Project"
run: dotnet publish BnbnavNetClient.Windows/BnbnavNetClient.Windows.csproj -c Release -r win-x64 --self-contained
- uses: actions/upload-artifact@v3
name: "Upload Artifact"
with:
name: "bnbnav-win"
path: "BnbnavNetClient.Windows/bin/Release/net7.0-windows/win-x64/publish"
release:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'release'
steps:
- uses: actions/download-artifact@v3
name: "Download Artifact"
id: download
with:
name: "bnbnav-win"
path: "bnbnav-win"
- run: |
zip -r bnbnav-win.zip bnbnav-win
- name: "Upload to Release"
uses: softprops/action-gh-release@v1
with:
files: bnbnav-win.zip