mirror of
https://github.com/Roslund/sthlm-mesh.git
synced 2026-07-05 09:21:20 +02:00
Add workflow
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
name: Deploy Hugo site
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main # Deploy when changes are pushed to "main"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Hugo
|
||||
uses: peaceiris/actions-hugo@v3
|
||||
with:
|
||||
hugo-version: 'latest'
|
||||
|
||||
- name: Build the site
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./public
|
||||
|
||||
Reference in New Issue
Block a user