Skip to content

Commit d570ba3

Browse files
committed
Revert preview pipeline
1 parent 3d158dd commit d570ba3

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

.github/workflows/release-preview.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 }}

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ on:
22
push:
33
tags:
44
- "v[0-9]+.[0-9]+.[0-9]+"
5-
- "v[0-9]+.[0-9]+.[0-9]+-preview[0-9]+"
65
env:
76
DOTNET_NOLOGO: true
87
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

0 commit comments

Comments
 (0)