🔖 Release version v0.6.9 #66
Workflow file for this run
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: Deploy to PyPI | |
on: [push, pull_request] | |
jobs: | |
release: | |
permissions: | |
id-token: write | |
contents: write | |
# Only run this job if new work is pushed to "main" | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
# Set up operating system | |
runs-on: ubuntu-latest | |
# Define job steps | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Check-out repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: | | |
python -m pip install poetry --upgrade pip | |
poetry config virtualenvs.create false | |
poetry install | |
- name: Python Semantic Release | |
run: | | |
git config --global user.name "github-actions" | |
git config --global user.email "action@github.com" | |
poetry build | |
semantic-release version --patch | |
env: | |
GH_TOKEN : ${{secrets.GITHUB_TOKEN}} | |
PYPI_TOKEN: ${{secrets.PYPI_TOKEN}} |