Skip to content

Commit

Permalink
init gh-action
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraa committed Sep 5, 2024
1 parent a646ceb commit de3a244
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: github pages

on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true

- name: Build
run: HUGO_ENV=production hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: publish
2 changes: 1 addition & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
baseURL = 'https://example.org/'
baseURL = 'https://deviesdevelopment.github.io/opendevies/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = 'hugo-nederburg-theme'

0 comments on commit de3a244

Please sign in to comment.