Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,23 @@ jobs:
tag_prefix: v
- name: Echo created tag
run: echo "Created ${{ steps.tagger.outputs.new_tag }}"
- name: Set up Python
if: steps.tagger.outputs.new_tag != ''
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install build dependencies
if: steps.tagger.outputs.new_tag != ''
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
if: steps.tagger.outputs.new_tag != ''
run: python -m build
- name: Publish to Artifactory
if: steps.tagger.outputs.new_tag != ''
env:
TWINE_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
TWINE_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
TWINE_REPOSITORY_URL: ${{ secrets.ARTIFACTORY_URL }}
run: twine upload dist/*
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ After the tests pass, the PR can be merged once it has been approved.
Merged commits on `master` are scanned for Conventional Commit messages.
A separate workflow uses a public GitHub Action to calculate the next semantic
version and automatically push the corresponding `vX.Y.Z` tag.
Whenever a tag is created, another step builds the package and publishes it to
the configured Artifactory PyPI repository.

## License

Expand Down