File tree Expand file tree Collapse file tree 2 files changed +49
-1
lines changed Expand file tree Collapse file tree 2 files changed +49
-1
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ tags :
4
+ - " v[0-9]+.[0-9]+.[0-9]+-preview[0-9]+"
5
+ env :
6
+ DOTNET_NOLOGO : true
7
+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
8
+ DOTNET_CLI_TELEMETRY_OPTOUT : true
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ timeout-minutes : 10
13
+ steps :
14
+ - name : Checkout
15
+ uses : actions/checkout@v2
16
+ - name : Set VERSION variable from tag
17
+ run : echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
18
+ - name : Pack
19
+ run : |
20
+ dotnet pack src \
21
+ -p:PackageVersion="${VERSION}" \
22
+ --configuration Release \
23
+ --verbosity normal \
24
+ --output .
25
+ - name : Upload Artifact
26
+ uses : actions/upload-artifact@v3
27
+ with :
28
+ name : nupkg
29
+ path : |
30
+ *.nupkg
31
+ *.snupkg
32
+
33
+ deploy-github :
34
+ needs : build
35
+ runs-on : ubuntu-latest
36
+ steps :
37
+ - name : Download Artifact
38
+ uses : actions/download-artifact@v1
39
+ with :
40
+ name : nupkg
41
+ - name : Push to GitHub
42
+ run : |
43
+ dotnet nuget push ./nupkg/* \
44
+ --source ${FEED_URL} \
45
+ --api-key ${FEED_KEY} \
46
+ --skip-duplicate
47
+ env :
48
+ FEED_URL : https://nuget.pkg.github.com/wcoder/index.json \
49
+ FEED_KEY : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 2
2
push :
3
3
tags :
4
4
- " v[0-9]+.[0-9]+.[0-9]+"
5
- - " v[0-9]+.[0-9]+.[0-9]+-preview[0-9]+"
6
5
env :
7
6
DOTNET_NOLOGO : true
8
7
DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
You can’t perform that action at this time.
0 commit comments