Skip to content

Commit 4099d31

Browse files
authored
Merge pull request #10 from null-d3v/skip-duplicate
fix: skip duplicate
2 parents 09edc33 + 2d37472 commit 4099d31

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

.github/workflows/publish.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
name: Publish
2-
3-
on:
4-
release:
5-
types:
6-
- published
7-
8-
jobs:
9-
publish:
10-
runs-on: ubuntu-latest
11-
services:
12-
redis:
13-
image: redis
14-
ports:
15-
- 6379:6379
16-
steps:
17-
- uses: actions/checkout@v3
18-
- name: Version
19-
run: echo "VERSION=${GITHUB_REF:10}+${GITHUB_SHA::8}" >> $GITHUB_ENV
20-
- name: Setup
21-
uses: actions/setup-dotnet@v3
22-
with:
23-
dotnet-version: 7
24-
- name: Build
25-
run: dotnet build -c Release
26-
- name: Test
27-
run: dotnet test
28-
- name: Publish
29-
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_KEY }} -n -s https://api.nuget.org/v3/index.json
1+
name: Publish
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
services:
12+
redis:
13+
image: redis
14+
ports:
15+
- 6379:6379
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Version
19+
run: echo "VERSION=${GITHUB_REF:10}+${GITHUB_SHA::8}" >> $GITHUB_ENV
20+
- name: Setup
21+
uses: actions/setup-dotnet@v3
22+
with:
23+
dotnet-version: 7
24+
- name: Build
25+
run: dotnet build -c Release
26+
- name: Test
27+
run: dotnet test
28+
- name: Publish
29+
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_KEY }} -n -s https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)