name: Build Documentation using MkDocs on: push: # Pattern matched against refs/tags tags: - '**' jobs: build: name: Build and Deploy Documentation runs-on: ubuntu-latest steps: - name: Checkout Master uses: actions/checkout@v3 - name: Set up Python 3.8 uses: actions/setup-python@v4 with: python-version: '3.8' - name: Install dependencies run: | python -m pip install poetry==1.4.1 poetry install --extras "all" env: POETRY_VIRTUALENVS_CREATE: false - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Test run: | echo $RELEASE_VERSION echo ${{ env.RELEASE_VERSION }} - name: Deploy run: | mike deploy --push --update-aliases ${{ env.RELEASE_VERSION }} latest