Skip to content

Generating static files #637

Generating static files

Generating static files #637

Workflow file for this run

name: Generate static files
on:
push:
branches:
- main
jobs:
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GPR_AUTH_TOKEN_SHARED }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Build
run: npm ci
- name: Generate static files
run: |
bundle exec rake utilities:build
bundle exec rake docs:build
bundle exec rake static:dump
bundle exec rake docs:build_lookbook_pages
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Generating static files
commit_user_name: GitHub Design Engineering Bot
commit_user_email: primer-css@users.noreply.github.com
commit_author: primer-css <primer-css@users.noreply.github.com>
file_pattern: lib/primer/classify/utilities.yml static/*.json