-
Notifications
You must be signed in to change notification settings - Fork 116
37 lines (35 loc) · 1.06 KB
/
static-files.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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