deploy-posixath #3
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: deploy-posixath | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy-posixath: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
defaults: | |
run: | |
working-directory: | |
posix | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --user pipenv | |
pipenv install | |
pipenv install hatch twine | |
- name: Lint with black | |
run: | | |
pipenv run python -m black --check src/posixath/ | |
- name: Build package | |
run: pipenv run hatch build | |
- name: Publish Package to PyPi | |
run: pipenv run python -m twine upload dist/* | |
env: | |
TWINE_USERNAME: ${{secrets.PYPI_USERNAME}} | |
TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}} |