Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/pine64/website
Browse files Browse the repository at this point in the history
  • Loading branch information
x1y committed Mar 1, 2024
2 parents 9d7f40c + 9bb055e commit 8d027fa
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 227 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/hugo-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: GitHub Pages

on:
push:
branches:
- main # Set a branch to deploy
pull_request:

jobs:
build-site:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
with:
submodules: true # Incase we subrepo stuff in
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Install deps
run: sudo apt-get update && sudo apt-get install -y asciidoctor

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

- name: Build
run: hugo --minify

- name: Upload output artifacts
uses: actions/upload-artifact@v4
with:
name: website-build.zip
path: ./public
if-no-files-found: error
Loading

0 comments on commit 8d027fa

Please sign in to comment.