diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3f042fa..15df3ed 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,3 @@ -# Sample workflow for building and deploying a Hyas site to GitHub Pages name: Deploy Hyas site to Pages on: @@ -38,23 +37,29 @@ jobs: 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 + - name: Install Dart Sass run: sudo snap install dart-sass + - name: Checkout uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 + - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' - cache: 'npm' + cache: 'yarn' + - name: Setup Pages id: pages uses: actions/configure-pages@v4 + - name: Install dependencies - run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" + run: yarn install + - name: Build production website env: # For maximum backward compatibility with Hugo modules @@ -62,9 +67,10 @@ jobs: HUGO_ENV: production TZ: America/Los_Angeles run: | - npm run build \ + yarn build \ -- \ --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: