v0.4.0: Nested Hyperparameters #6
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: Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
lint: | |
uses: ./.github/workflows/lint.yaml | |
test: | |
needs: [ lint ] | |
uses: ./.github/workflows/test.yaml | |
deploy-test: | |
needs: [test] | |
runs-on: ubuntu-latest | |
environment: | |
name: TestPyPI | |
url: https://test.pypi.org/project/rul-adapt/ | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install-poetry | |
with: | |
poetry-version: "1.2.2" | |
- run: poetry install | |
- run: pipx inject poetry poetry-bumpversion | |
- run: poetry config repositories.testpypi https://test.pypi.org/legacy/ | |
- run: poetry config pypi-token.testpypi ${{ secrets.PYPI_TOKEN }} | |
- run: | | |
poetry version ${{ github.ref_name }} | |
poetry build | |
- run: poetry publish -r testpypi | |
deploy-prod: | |
needs: [ deploy-test ] | |
runs-on: ubuntu-latest | |
environment: | |
name: PyPI | |
url: https://pypi.org/project/rul-adapt/ | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install-poetry | |
with: | |
poetry-version: "1.2.2" | |
- run: poetry install | |
- run: pipx inject poetry poetry-bumpversion | |
- run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | |
- run: | | |
poetry version ${{ github.ref_name }} | |
poetry build | |
- run: poetry publish | |
deploy-docs: | |
runs-on: ubuntu-latest | |
needs: [ deploy-prod ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install-poetry | |
with: | |
poetry-version: "1.2.2" | |
optional-groups: "docs" | |
- run: poetry run mkdocs gh-deploy --force |