update the releaserc file #4
This file contains hidden or 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: 📦 Release | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| semantic-release: | |
| runs-on: ubuntu-latest | |
| # don't re‐trigger on the [skip ci] bump+tag commit | |
| if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| - name: Install tooling | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install poetry python-semantic-release | |
| - name: Install dependencies | |
| run: poetry install --with dev --no-root | |
| - name: Run semantic-release | |
| run: semantic-release publish | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | |