Skip to content

Commit

Permalink
Run hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
joone committed Apr 2, 2024
1 parent f065df4 commit 00a609c
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
name: Checkout src repo
with:
Expand All @@ -18,18 +19,12 @@ jobs:
ref: main
submodules: recursive

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x" # Or your desired version

- name: Install dependencies
run: npm install
working-directory: src

- name: Build
run: npm run build
# Build hugo website with klakegg/[email protected] action
- name: Build website with hugo
working-directory: src
run: |
yes | sudo apt -y install hugo
hugo
# Checkout destination repository
- name: Checkout dest repo
Expand All @@ -54,4 +49,4 @@ jobs:
git config --global user.email [email protected]
git add .
git diff-index --quiet HEAD || git commit -m "Deploy website updates with GitHub Actions: ${GITHUB_SHA}"
git push origin gh-pages
git push origin gh-pages

0 comments on commit 00a609c

Please sign in to comment.