Skip to content

Commit

Permalink
Testing Versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
ritasker committed Aug 8, 2024
1 parent 8e42304 commit 335e2a9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.*
- name: Publish Reason
run: echo ${{github.ref}} and ${{github.event_name}}
- name: Get version from tag
run: export VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
- name: publish on version change
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: src\Carter.SirenNegotiator.csproj
PACKAGE_NAME: Carter.SirenNegotiator
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
VERSION_STATIC: ${{ env.VERSION }}
run: run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Test Output
run: echo $VERSION

0 comments on commit 335e2a9

Please sign in to comment.