Merge pull request #21 from olivierdalang/support-dj4.2 #37
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: pypi | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine | |
- name: Set version | |
env: | |
GITHUB_TAG: ${{github.ref}} | |
run: python scripts/ci_set_version_from_git.py | |
- name: Build | |
run: python setup.py sdist bdist_wheel | |
- name: Assert version | |
env: | |
GITHUB_TAG: ${{github.ref}} | |
run: python scripts/ci_assert_version_from_git.py | |
- name: Publish | |
env: | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run: twine upload dist/* |