Skip to content

Merge branch 'master' of https://github.com/gcentral/Website #3

Merge branch 'master' of https://github.com/gcentral/Website

Merge branch 'master' of https://github.com/gcentral/Website #3

Workflow file for this run

name: Deploy Hugo site to GitHub Pages
on:
push:
branches:
- master # <- Deploy on pushes to main
workflow_dispatch: # <- Allow manual runs from the Actions tab
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true # Set to true if your theme is a submodule
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.119.0" # <- change to match your local Hugo version
extended: true # <- true if you use SCSS, pipes, etc.
- name: Build site
run: hugo --minify # Add flags here if you need them
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public # <- must match your Hugo publishDir (default is public)
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4