Skip to content

Commit

Permalink
ci(deploy): with actions
Browse files Browse the repository at this point in the history
  • Loading branch information
xgaia committed Jun 19, 2024
1 parent 6392e09 commit 5884e6c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build-and-deploy
on:
- push
jobs:
build:
if: "github.ref == 'refs/heads/main'"
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
container:
image: python:3.11
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
run: |
python3 -m venv venv
. ./venv/bin/activate
pip install -U poetry
poetry install --without=dev
poetry run make html
- name: Upload
uses: actions/upload-pages-artifact@v3
with:
path: _build/html
- name: Pages
uses: actions/deploy-pages@v4

0 comments on commit 5884e6c

Please sign in to comment.