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: Publish to PyPI and update files | |
# GitHub events that triggers the workflow: | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
call_tests_workflow: | |
name: Test | |
uses: ./.github/workflows/test.yaml | |
publish: | |
name: Publish to PyPI | |
needs: [call_tests_workflow] | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Hatch | |
uses: pypa/hatch@install | |
- name: Check if the release tag matches the version | |
uses: samuelcolvin/[email protected] | |
with: | |
version_file_path: rendercv_fonts/__init__.py | |
- name: Build | |
run: | | |
hatch build | |
- name: Upload package to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |