Skip to content

Merge pull request #167 from NAMTeam/dependabot/npm_and_yarn/eslint-8… #190

Merge pull request #167 from NAMTeam/dependabot/npm_and_yarn/eslint-8…

Merge pull request #167 from NAMTeam/dependabot/npm_and_yarn/eslint-8… #190

Workflow file for this run

name: Build Hugo site
on:
# Runs on pushes targeting the default branch
push:
branches:
- main # Set a branch name to trigger deployment
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
# Default to bash
defaults:
run:
shell: bash
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
- name: Install dependencies
run: npm install
# - name: Check for linting errors
# run: npm test
- name: Build production website
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: www.sc4nam.com