diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..aaa73c1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,40 @@ +name: Release + +on: + workflow_dispatch: + push: + branches: + - main + paths: + - '**/*.tpl' + - '**/*.py' + - '**/*.tf' + - '.github/workflows/release.yml' + +jobs: + release: + runs-on: ubuntu-latest + # Skip running release workflow on forks + if: github.repository_owner == 'justtrackio' + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + persist-credentials: false + fetch-depth: 0 + + - name: Release + uses: cycjimmy/semantic-release-action@v3 + with: + semantic_version: 19.0.5 + extra_plugins: | + @semantic-release/changelog + @semantic-release/git + conventional-changelog-conventionalcommits + branches: | + [ + '+([0-9])?(.{+([0-9]),x}).x', + 'main' + ] + env: + GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}