diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 636c0db..dafc075 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,9 +1,6 @@ name: Build and Deploy -on: - push: - branches: - - main +on: [release] jobs: build: diff --git a/.github/workflows/semantic-release.yaml b/.github/workflows/semantic-release.yaml new file mode 100644 index 0000000..95cb4bc --- /dev/null +++ b/.github/workflows/semantic-release.yaml @@ -0,0 +1,20 @@ +name: Release + +on: + push: + branches: + - main +jobs: + name: Release + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Semantic Release + uses: cycjimmy/semantic-release-action@v6 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}