Skip to content

Commit

Permalink
updates gh workflow to install asciidoc and run in reader subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbradley committed Jul 22, 2024
1 parent 38a72f3 commit 45c286f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
- 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 \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb \
&& sudo apt-get install -y asciidoc
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
Expand All @@ -56,14 +57,15 @@ jobs:
HUGO_ENVIRONMENT: production
TZ: America/Vancouver
run: |
hugo \
cd reader \
&& hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
path: ./reader/public

# Deployment job
deploy:
Expand Down

0 comments on commit 45c286f

Please sign in to comment.