Skip to content

Commit

Permalink
Merge pull request #10 from null-d3v/skip-duplicate
Browse files Browse the repository at this point in the history
fix: skip duplicate
  • Loading branch information
null-d3v authored Nov 12, 2022
2 parents 09edc33 + 2d37472 commit 4099d31
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: Publish

on:
release:
types:
- published

jobs:
publish:
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- name: Version
run: echo "VERSION=${GITHUB_REF:10}+${GITHUB_SHA::8}" >> $GITHUB_ENV
- name: Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test
- name: Publish
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_KEY }} -n -s https://api.nuget.org/v3/index.json
name: Publish

on:
release:
types:
- published

jobs:
publish:
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- name: Version
run: echo "VERSION=${GITHUB_REF:10}+${GITHUB_SHA::8}" >> $GITHUB_ENV
- name: Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test
- name: Publish
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_KEY }} -n -s https://api.nuget.org/v3/index.json --skip-duplicate

0 comments on commit 4099d31

Please sign in to comment.