Ci/setup semantic release #2
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: Semantic Release | |
on: | |
push: | |
branches: | |
- ci/setup-semantic-release | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
concurrency: release | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: | | |
python -m pip install poetry --upgrade pip | |
poetry install | |
- name: Python Semantic Release | |
uses: python-semantic-release/python-semantic-release@master | |
env: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run: poetry run semantic-release publish --post publish_command='poetry publish --repository testpypi' |