chore(deps): update dependency poethepoet to v0.24.3 #238
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: CD | |
on: | |
pull_request: | |
branches: | |
- master | |
types: | |
- closed | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged == true | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create an empty distribution folder | |
run: | | |
mkdir dist | |
- uses: relekang/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
pypi_token: ${{ secrets.PYPI_TOKEN }} | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.2.2 | |
- name: Configure Poetry | |
run: | | |
poetry config virtualenvs.in-project true | |
- name: Set up cache | |
uses: actions/[email protected] | |
with: | |
path: .venv | |
key: venv-${{ hashFiles('**/poetry.lock') }} | |
- name: Install dependencies | |
run: | | |
poetry install --no-root | |
- name: Get the release version | |
run: | | |
export RELEASE_TAG_VERSION="$( poetry run semantic-release print-version --current )" | |
echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION}" >> $GITHUB_ENV | |
- name: Configure git | |
run: | | |
git config --global user.name Docs deploy | |
git config --global user.email [email protected] | |
- name: Publish the documentation | |
run: | | |
poetry run mike deploy --push --update-aliases ${RELEASE_TAG_VERSION} latest | |
poetry run mike set-default --push latest |