Skip to content

Commit

Permalink
ci: Release when a tag is pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 13, 2024
1 parent 1663b62 commit 749eadc
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/changelog-generator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# yaml-language-server: $schema=https://gabe565.github.io/changelog-generator/config.schema.json
filters:
exclude:
- "^docs"
- "^test"
groups:
- title: Breaking Changes
order: 0
regexp: "^.+?!:"
- title: Features
order: 1
regexp: "^(feat)"
- title: Fixes
order: 2
regexp: "^(fix|perf)"
- title: Others
order: 999
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,24 @@ jobs:
matrix: ${{ fromJson(needs.test-gen-deploy-matrix.outputs.matrix) }}
steps:
- run: echo ${{ matrix.name }}

release:
name: Release
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref_name, '.')
needs: [build, lint, test-gen-deploy-matrix, test-output]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate Changelog
id: changelog
uses: gabe565/changelog-generator@v1
- name: Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.changelog }}
- uses: nowactions/update-majorver@v1

0 comments on commit 749eadc

Please sign in to comment.