Add domain-events package to SDK dependencies (#3) #1
Workflow file for this run
This file contains hidden or 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
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| jobs: | |
| validate: | |
| name: Validate Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Validate Branch | |
| run: | | |
| TAG_COMMIT=$(git rev-list -n 1 ${{ github.ref_name }}) | |
| if ! git merge-base --is-ancestor $TAG_COMMIT origin/main; then | |
| echo "❌ ERROR: Tag ${{ github.ref_name }} is not on main branch" | |
| echo "Tags must be created from commits that are on main." | |
| exit 1 | |
| fi | |
| echo "✅ Tag ${{ github.ref_name }} is on main branch" | |
| github-release: | |
| name: Update GitHub Release | |
| runs-on: ubuntu-latest | |
| needs: [validate] | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Update Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true |