Skip to content

Commit

Permalink
feat: add workflow to deploy to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Silva97 committed Sep 12, 2024
1 parent fed7448 commit 82fbccc
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy to GitHub Pages

on:
push:
branches: ["main"]
workflow_dispatch:

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup GitHub Pages
uses: actions/configure-pages@v5

- name: Render HTML
run: make docker ARGS=html

- name: Upload HTML output content
uses: actions/upload-pages-artifact@v3
with:
path: output/

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 82fbccc

Please sign in to comment.