Fix bug in github workflow v3 #4
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: "build-and-release" | |
on: | |
push: | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
tagged-release: # TODO: Maybe make this conditional so it can run on pull requests | |
name: "Tagged Release" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Run image | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: '1.6.1' | |
- name: Install dependencies | |
run: | | |
poetry self add "poetry-dynamic-versioning[plugin]" | |
poetry install --all-extras | |
# - name: Create Github release | |
# uses: "marvinpinto/action-automatic-releases@latest" | |
# with: | |
# repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
# prerelease: false | |
# files: | | |
# dist/*.whl | |
# dist/*.tar.gz | |
- name: Build and publish package | |
run: poetry publish --build --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} |