-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (27 loc) · 946 Bytes
/
Copy pathrelease.yml
File metadata and controls
41 lines (27 loc) · 946 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
41
name: Release
on:
push:
tags: ["*.*.*"]
# Sets permissions of
# the GITHUB_TOKEN to
# allow deployment to
# GPR.
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Pull
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.x
source-url: https://nuget.pkg.github.com/0UserName/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Make
run: dotnet build -c Release -p:GeneratePackageOnBuild=true -p:Version='${{ github.ref_name }}' -p:Authors='${{ github.repository_owner }}' -p:Description='${{ vars.PACKAGE_DESCRIPTION }}' -p:RepositoryUrl='${{ github.server_url }}/${{ github.repository }}' -p:RepositoryCommit='${{ github.sha }}'
- name: Push
run: dotnet nuget push **/*.nupkg