Skip to content

Update 2019/02/rfs.png #1699

Update 2019/02/rfs.png

Update 2019/02/rfs.png #1699

Workflow file for this run

name: CI
on:
push:
branches:
- main
- "!dependabot/**"
pull_request:
workflow_dispatch:
env:
FORCE_COLOR: 2
NODE: 20
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v4
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@v4
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@v4
with:
persist-credentials: false
- name: Download docs
uses: actions/download-artifact@v4
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/