-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (37 loc) · 1.17 KB
/
AutSoftCore_CD.yml
File metadata and controls
48 lines (37 loc) · 1.17 KB
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
48
name: AutSoftCore CD
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
versionSpec: '5.x'
- name: Determine Version
uses: gittools/actions/gitversion/execute@v0.9.14
with:
useConfigFile: true
configFilePath: pipelines/GitVersion.yml
- name: Restore dependencies
run: dotnet restore
# Reason for this build: https://github.com/microsoft/TypeScript/issues/42907
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Pack
run: dotnet pack --no-restore --configuration Release --output artifacts
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.0
with:
path: "**/*.nupkg"
- name: Push
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json