-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 886 Bytes
/
Copy pathpublish.yml
File metadata and controls
35 lines (34 loc) · 886 Bytes
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
name: .NET Publish
on:
push:
tags:
- "*"
env:
CONFIGURATION: Release
jobs:
build:
# Sets permissions of the GITHUB_TOKEN to allow release creating
permissions:
contents: write
environment:
name: nuget
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup necessary dotnet SDKs
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
dotnet-version: |
8.x
9.x
10.x
- name: publish
env:
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FAKE_DETAILED_ERRORS: true
ENABLE_COVERAGE: false # AltCover doesn't work with Release builds, reports lower coverage than actual
run: |
chmod +x ./build.sh
./build.sh Publish