-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1.11 KB
/
main.yml
File metadata and controls
43 lines (33 loc) · 1.11 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
name: Nuget HTMLconvert
on:
push:
branches:
- main
jobs:
publish-nuget:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
# - name: Install wkthtmltopdf
# run: |
# sudo apt-get install -y xfonts-base xfonts-75dpi
# wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb
# sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.101
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
# - name: Tests
# run: dotnet test Tests/Tests.csproj --no-restore --verbosity normal
- name: Publish to NuGet
uses: brandedoutcast/publish-nuget@v2.5.5
with:
PROJECT_FILE_PATH: HTMLconvert/HTMLconvert.csproj
PACKAGE_NAME: HTMLconvert.NETCore
VERSION_REGEX: '^\s*<Version>(.*)<\/Version>\s*$'
TAG_FORMAT: '*'
NUGET_KEY: ${{secrets.NUGETAPIKEY}}