Skip to content

Write up v5.3.1 post #1625

Write up v5.3.1 post

Write up v5.3.1 post #1625

Workflow file for this run

name: CI
on:
push:
branches:
- main
- "!dependabot/**"
pull_request:
workflow_dispatch:
env:
FORCE_COLOR: 2
NODE: 18
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE }}
cache: npm
- run: java -version
- name: Install npm dependencies
run: npm ci
- name: Build and test docs
run: npm test
- name: Upload docs
uses: actions/upload-artifact@v3
if: github.repository == 'twbs/blog' && github.ref == 'refs/heads/main'
with:
name: docs
path: ./_site/
if-no-files-found: error
deploy:
runs-on: ubuntu-latest
needs: test
if: github.repository == 'twbs/blog' && github.ref == 'refs/heads/main'
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Download docs
uses: actions/download-artifact@v3
with:
name: docs
path: ./_site/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
allow_empty_commit: false
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_branch: gh-pages
publish_dir: ./_site/