adding auto-publish #1
This file contains 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: 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/[email protected] | |
with: | |
gh-token: ${{ secrets.GITHUB_TOKEN }} | |
parse-changelog: true |