Skip to content

Commit

Permalink
Moved publish to after the code that runs the tool
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Jan 31, 2021
1 parent 08c60cc commit 1607c9d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-and-publish-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ jobs:
dotnet pack --configuration Release /p:Version=${{ env.BUILD_VERSION }} --no-restore --output ../dist
env:
ReleaseNotes: ${{ steps.release-notes.outputs.content }}
- name: Publish
run: |
dotnet pushpackages -folder dist --api-key ${{ secrets.NUGET_API_KEY }} --source ${{ secrets.NUGET_FEED }}
- name: Update Release Notes
run: |
dotnet tool uninstall --local Credfeto.ChangeLog.Cmd
dotnet tool install --local Credfeto.ChangeLog.Cmd --version ${{ env.BUILD_VERSION }} --add-source dist
dotnet changelog --changelog CHANGELOG.md --extract RELEASE_NOTES.md --version ${{ env.BUILD_VERSION }}
dotnet changelog --changelog CHANGELOG.md --check-insert origin/master
- name: Publish
run: |
dotnet pushpackages -folder dist --api-key ${{ secrets.NUGET_API_KEY }} --source ${{ secrets.NUGET_FEED }}
9 changes: 5 additions & 4 deletions .github/workflows/build-and-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ jobs:
run: |
cd src
dotnet pack --configuration Release /p:Version=${{ env.BUILD_VERSION }} --no-restore --output ../dist
- name: Update Release Notes with new tool
run: |
dotnet tool uninstall --local Credfeto.ChangeLog.Cmd
dotnet tool install --local Credfeto.ChangeLog.Cmd --version ${{ env.BUILD_VERSION }} --add-source dist
dotnet changelog --changelog CHANGELOG.md --extract RELEASE_NOTES.md --version ${{ env.BUILD_VERSION }}
- name: Publish
run: |
dotnet pushpackages -folder dist --api-key ${{ secrets.NUGET_API_KEY }} --source ${{ secrets.NUGET_FEED }}
env:
ReleaseNotes: ${{ steps.release-notes.outputs.content }}
- name: Update Release Notes with new tool
run: |
dotnet tool install --local Credfeto.ChangeLog.Cmd --version ${{ env.BUILD_VERSION }} --add-source dist
dotnet changelog --changelog CHANGELOG.md --extract RELEASE_NOTES.md --version ${{ env.BUILD_VERSION }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit 1607c9d

Please sign in to comment.