-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable restriction for release branches
- Loading branch information
1 parent
82f6bc2
commit 1b1f7c7
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 | ||
|