Skip to content

Commit

Permalink
chore(ci): create pipeline to deploy on GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nettoclaudio committed Jun 23, 2023
1 parent fe46e5b commit 25d5767
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy docs to GitHub pages

on:
push:
branches:
- main

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'poetry'

- name: Generating pages
run: make build

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'site/'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 25d5767

Please sign in to comment.