Add support for castable integer and port number types in config sche… #305
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: release | |
on: | |
push: | |
branches: [master] | |
jobs: | |
test: | |
uses: ./.github/workflows/test_and_build.yml | |
secrets: inherit | |
build: | |
runs-on: ubuntu-latest | |
environment: CD | |
needs: | |
- test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip poetry | |
poetry config virtualenvs.create false | |
poetry lock | |
poetry install | |
- name: Build package | |
run: poetry build | |
- name: Build docs | |
run: cd docs && make html | |
- name: Release to PyPI | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
run: twine upload --verbose dist/* || echo 'Version exists' |