-
Notifications
You must be signed in to change notification settings - Fork 7
71 lines (60 loc) · 1.74 KB
/
dotnet.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: dotnet package
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- v*
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
# Pre-installed in windows-latest
# - name: Setup .NET Core SDK 8.0
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: '8.0.x'
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Install dependencies
run: dotnet restore --nologo
- name: Build
run: msbuild YoutubeSegmentDownloader.sln -t:publish -p:Configuration=Release -p:DeployOnBuild=true -p:PublishProfile=ClickOnceProfile
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: artifact
path: bin/Release/net8.0-windows/win-x64/app.publish
retention-days: 1
deploy_setup:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: artifact
- name: Deploy files to setup branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
keep_files: true
publish_branch: setup
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: artifact
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
body_path: NOTICE
files: |
YoutubeSegmentDownloader.exe
setup.exe