Skip to content

docs: update docs and gh workflow config #19

docs: update docs and gh workflow config

docs: update docs and gh workflow config #19

name: Build Jekyll with GitHub Pages
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "src/**"
- "assets/**"
- "README.MD"
- "README.0.9.2.MD"
# 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
pull-requests: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: npm install
- name: Build docs
run: npm run docs
- name: Create a commit
uses: EndBug/add-and-commit@v9
with:
add: '["docs/", "*.MD", "*.md"]'
message: 'chore: update docs'
ci-complete:
name: Complete CI
needs: [build]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Check all job status
if: >-
${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
run: exit 1