ci(deploy): with actions #2
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: build-and-deploy | |
on: | |
- push | |
jobs: | |
build: | |
# if: "github.ref == 'refs/heads/main'" | |
runs-on: ubuntu-latest | |
container: | |
image: python:3.11 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install | |
run: | | |
apk add --update --no-cache poetry | |
poetry install --without=dev | |
poetry run sphinx-build docs _build html | |
- name: Upload | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: _build/html | |
- name: Pages | |
uses: actions/deploy-pages@v4 | |