-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactors the pipeline back to git tag and removes GitReleaseManager.
- Loading branch information
Showing
1 changed file
with
9 additions
and
23 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 |
---|---|---|
|
@@ -68,16 +68,16 @@ jobs: | |
runs-on: ubuntu-latest | ||
env: | ||
GitVersion_SemVer: ${{needs.Build.outputs.GitVersion_SemVer}} | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: nupkg | ||
|
||
- name: Set up GitReleaseManager | ||
uses: gittools/actions/gitreleasemanager/[email protected] | ||
with: | ||
versionSpec: '0.18.x' | ||
|
||
- name: Set nupkg path (GitVersion-ed) | ||
run: | | ||
echo 'NUPKG_PATH=${{ github.event.repository.name }}.${{ env.GitVersion_SemVer }}.nupkg' >> "$GITHUB_ENV" | ||
|
@@ -92,21 +92,7 @@ jobs: | |
env: | ||
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_AUTH_TOKEN }} | ||
|
||
- uses: gittools/actions/gitreleasemanager/[email protected] | ||
name: Create release with GitReleaseManager | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
owner: ${{ github.repository_owner }} | ||
repository: ${{ github.event.repository.name }} | ||
milestone: ${{ env.GitVersion_SemVer }} | ||
name: v${{ env.GitVersion_SemVer }} | ||
assets: | | ||
${{ env.NUPKG_PATH }} | ||
- uses: gittools/actions/gitreleasemanager/[email protected] | ||
name: Publish release with GitReleaseManager | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
owner: ${{ github.repository_owner }} | ||
repository: ${{ github.event.repository.name }} | ||
milestone: ${{ env.GitVersion_SemVer }} | ||
- name: git tag | ||
run: | | ||
git tag v${{ env.GitVersion_SemVer }} | ||
git push origin tag v${{ env.GitVersion_SemVer }} |