Skip to content

Commit

Permalink
disable restriction for release branches
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-abblix committed Jul 10, 2024
1 parent 82f6bc2 commit 1b1f7c7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI/CD Pipeline for Auto Versioning, Building, and Publishing on Release Branch
name: Build, Publish and Merge Release to Master

on:
workflow_dispatch: # Manual trigger
Expand Down Expand Up @@ -50,18 +50,18 @@ jobs:

publish:
needs: build
if: startsWith(github.ref, 'refs/heads/release/')
# if: startsWith(github.ref, 'refs/heads/release/')
runs-on: ubuntu-latest
steps:
- name: Download NuGet packages artifacts
uses: actions/[email protected]
with:
name: nuget-packages
path: nupkg
- name: Push to NuGet.org
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Push to GitHub Packages
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate
# - name: Push to NuGet.org
# run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
# - name: Push to GitHub Packages
# run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate

merge_to_master:
needs: publish
Expand Down

0 comments on commit 1b1f7c7

Please sign in to comment.