Skip to content

Commit

Permalink
Add deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianruesch committed Nov 30, 2023
1 parent 6e2ecc2 commit 351dac3
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/github-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Github Pages

on:
push:
branches: [ main ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: "Checkout Repository"
uses: actions/checkout@v2
with:
submodules: true
- name: "Set up Hugo"
uses: peaceiris/actions-hugo@v2
with:
hugo-version: latest
- name: "Build"
run: hugo --minify -e production
- name: "Upload pages artifact"
uses: actions/upload-pages-artifact@v2
with:
path: public
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: "Deploy"
uses: actions/deploy-pages@v2

0 comments on commit 351dac3

Please sign in to comment.