Skip to content

Commit

Permalink
chore: refactor version job for release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
codito authored Oct 12, 2024
1 parent eb973e0 commit 3af2697
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ jobs:
with:
name: Noted.${{ matrix.os }}
path: src/Noted/bin/Publish/
- name: Release please
uses: googleapis/release-please-action@v4

version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: googleapis/release-please-action@v4
id: release
if: github.ref == 'refs/heads/master'
with:
Expand All @@ -50,7 +54,7 @@ jobs:

publish:
if: contains(github.ref, 'tags/v') # only publish tagged versions
needs: [test]
needs: [test, version]
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
Expand Down

0 comments on commit 3af2697

Please sign in to comment.