From 45c286f1001da3212188cd4f0fb06d072971bcf8 Mon Sep 17 00:00:00 2001 From: Nick Bradley Date: Mon, 22 Jul 2024 13:48:11 -0700 Subject: [PATCH] updates gh workflow to install asciidoc and run in reader subdirectory --- .github/workflows/hugo.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 4d80213..58f4d20 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -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 @@ -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: