Skip to content

fix: fetch-depth in GitHub Actions workflow #26

fix: fetch-depth in GitHub Actions workflow

fix: fetch-depth in GitHub Actions workflow #26

name: Upload python package
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, reopened, synchronize]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install poetry
- name: Config poetry
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} && poetry self add "poetry-dynamic-versioning[plugin]"
- name: Build and publish
run: |
poetry publish --build