forked from rimland/EPPlus
-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (59 loc) · 1.94 KB
/
build.yml
File metadata and controls
62 lines (59 loc) · 1.94 KB
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
name: Build artifacts
# ==== NOTE: do not rename this yml file or the run_number will be reset ====
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
source-url: https://nuget.pkg.github.com/${{ github.actor }}/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Install dependencies
run: dotnet restore
- name: Build solution [Release]
run: dotnet build --no-restore -c Release -p:VersionSuffix=$GITHUB_RUN_NUMBER
- name: Pack solution [Release]
run: dotnet pack --no-restore --no-build -c Release -p:VersionSuffix=$GITHUB_RUN_NUMBER -o out
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Nuget packages
path: |
out/*
- name: Publish Nuget packages to GitHub registry
run: dotnet nuget push "out/*" -k ${{secrets.GITHUB_TOKEN}}
builddocs:
runs-on: windows-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup .NET Core SDKs
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
with:
msbuild-architecture: x64
- name: Install SHFB
uses: Shane32/setup-SHFB@ffe9d55917ef7f63203c35528d53844409a1a502
with:
version: 2022.8.14.1
- name: Build project
run: dotnet build -c Release
- name: Build documentation
working-directory: Doc
run: msbuild EPPlusDoc.sln -t:rebuild -verbosity:minimal -property:Configuration=Release
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: Documentation
path: Doc/Help