Skip to content

Commit

Permalink
Pack after setting new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Somfic committed Aug 10, 2023
1 parent 50e0407 commit 4520939
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
reporter: dotnet-trx

release:
name: semver
name: release
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push'
Expand All @@ -49,13 +49,6 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: "7.0.x"

- name: Build
run: dotnet build --configuration Release

- name: Pack
if: ${{env.nuget_key != ''}}
run: dotnet pack --configuration Release --output nupkgs --include-symbols --include-source

- name: Setup GitVersion
run: dotnet tool install --global GitVersion.Tool
Expand All @@ -74,6 +67,13 @@ jobs:
- name: Update version
run: dotnet-gitversion /updateprojectfiles /updateassemblyinfo /output buildserver

- name: Build
run: dotnet build --configuration Release

- name: Pack
if: ${{env.nuget_key != ''}}
run: dotnet pack --configuration Release --output nupkgs --include-symbols --include-source

- name: Push version bump
if: ${{env.GitVersion_PreReleaseLabel == '' || env.GitVersion_PreReleaseLabel == 'alpha' || env.GitVersion_PreReleaseLabel == 'beta'}}
uses: EndBug/add-and-commit@v9
Expand Down

0 comments on commit 4520939

Please sign in to comment.