Skip to content

Commit

Permalink
fixed build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Nov 8, 2023
1 parent 774b16d commit aeb622a
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,32 +29,23 @@ defaults:

jobs:

# Build goki job
build-goki:
name: Build GoKi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.21.3'

- name: Install GoKi
# we don't want a GUI in the CI
run: go install -tags offscreen goki.dev/goki@latest

- name: Build Demo
run: goki build ./demo -o static/demo -t js

# Build job
build:
runs-on: ubuntu-latest
needs: build-goki
env:
HUGO_VERSION: 0.114.0
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.21.3'

- name: Install GoKi
run: go install -tags offscreen goki.dev/goki@latest

- name: Build Demo
run: goki build ./demo -o static/demo -t js

- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
Expand Down

0 comments on commit aeb622a

Please sign in to comment.