Skip to content

Commit

Permalink
♻️ Back to git tag (#13)
Browse files Browse the repository at this point in the history
Refactors the pipeline back to git tag and removes GitReleaseManager.
  • Loading branch information
connorjs authored Jul 23, 2024
1 parent 49a3992 commit 410c616
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 }}

0 comments on commit 410c616

Please sign in to comment.