Skip to content

Commit

Permalink
ci: fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47 committed May 1, 2022
1 parent 3ac7bf9 commit 73199e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
- name: πŸ’€ Wait for Containers
uses: jakejarvis/wait-action@master
with:
time: '40s'
time: "40s"
- name: πŸ§ͺ Run tests
run: dotnet test --no-build -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- name: ☒ Publish to Codecov
uses: codecov/codecov-action@v2
- name: πŸ—œ Pack Dev artifacts
- name: πŸ—œ Pack Dev NuGet artifacts
if: github.ref == 'refs/heads/main'
run: dotnet pack --no-build -c Release --version-suffix dev-$(date +%s) -o artifacts/
- name: πŸ—œ Pack NuGet artifacts
Expand All @@ -40,7 +40,7 @@ jobs:
deploy-github:
name: πŸš€ Deploy GitHub
needs: [build]
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-20.04
steps:
- name: 🚚 Download artifacts
Expand All @@ -60,4 +60,4 @@ jobs:
with:
name: nupkg
- name: πŸ“¦ Publish to NuGet
run: ddotnet nuget push "*.nupkg" -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
run: dotnet nuget push "*.nupkg" -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json

0 comments on commit 73199e8

Please sign in to comment.