-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 767 Bytes
/
release.yml
File metadata and controls
43 lines (36 loc) · 767 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
42
43
name: Release
on:
push:
tags:
- '*.*.*'
permissions:
contents: read
defaults:
run:
shell: pwsh
jobs:
build:
strategy:
fail-fast: false
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build and Test
env:
PACKAGE_VERSION: ${{ github.ref_name }}
run: ./Build.ps1
- name: Push to NuGet
env:
NUGET_URL: https://api.nuget.org/v3/index.json
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: ./Push.ps1
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
if-no-files-found: error
retention-days: 7
path: artifacts/**/*