-
Notifications
You must be signed in to change notification settings - Fork 46
40 lines (34 loc) · 887 Bytes
/
ci-release.yml
File metadata and controls
40 lines (34 loc) · 887 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
36
37
38
39
40
# If this file is renamed, the incrementing run attempt number will be reset.
name: Release
on:
push:
tags:
- '*'
env:
CI_BUILD_NUMBER: ${{ github.run_number }}
CI_TARGET_BRANCH: ${{ github.head_ref || github.ref_name }}
CI_COMMIT_TAG: ${{ github.ref_name }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Build and Publish
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
shell: pwsh
run: |
./Build.ps1
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "artifacts/*.nupkg"
generateReleaseNotes: true