-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (44 loc) · 1.21 KB
/
build-publish.yml
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
name: nuget-build-deploy
on:
push:
branches:
- main
- release/**
- develop/**
tags:
- '\d+\.\d+\.\d+'
paths-ignore:
- '**/*.md'
- 'LICENCE'
concurrency:
group: ${{ github.workflow }}-${{ github.ref_type }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
build:
name: Build and Release 🏗️
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
dotnet-version: ['9.0.x']
steps:
- name: Checkout Code 🛒
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET ${{ matrix.dotnet-version }} 👟👟
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Display dotnet version 🆚
run: dotnet --version
- name: Run nuke 🚀
shell: bash
env:
PackagesNugetApiKey: ${{ secrets.NUGET_API_KEY }}
PackagesNugetApiUrl: ${{ vars.PACKAGES_NUGET_URL }}
NugetOrgNugetApiKey: ${{ secrets.NUGETORG_API_KEY }}
NugetOrgNugetApiUrl: ${{ vars.NUGETORG_NUGET_URL }}
ReleaseNotes: ${{ vars.RELEASE_NOTES }}
run: |
./build.sh