Skip to content

Run CI on PRs and fail on warnings #58

Run CI on PRs and fail on warnings

Run CI on PRs and fail on warnings #58

Workflow file for this run

name: Build and Deploy Parquet Site
on:
push:
branches: [ production ]
pull_request:
jobs:
Build_and_Deploy_Site:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.124.1'
extended: true
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install
- name: Build
run: hugo --minify --panicOnWarning
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/production'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: public
publish_branch: asf-site
destination_dir: ./output
keep_files: true