diff --git a/.github/workflows/auto-publish.yml b/.github/workflows/auto-publish.yml new file mode 100644 index 0000000..bb962b5 --- /dev/null +++ b/.github/workflows/auto-publish.yml @@ -0,0 +1,18 @@ +name: Auto-publish + +on: [push, workflow_dispatch] + +jobs: + # Auto-publish when version is increased + publish-job: + # Only publish on `main` branch + if: github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + permissions: # Don't forget permissions + contents: write + + steps: + - uses: etils-actions/pypi-auto-publish@v1.5.2 + with: + gh-token: ${{ secrets.GITHUB_TOKEN }} + parse-changelog: true \ No newline at end of file