forked from carpentries/varnish
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1018 Bytes
/
compile-css.yaml
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
on:
pull_request:
push:
paths:
- .github/workflows/compile-css.yaml
- source/**
- source/**/**
- postinstall.sh
- squash-a-script.sh
- squash-sass.sh
- package.json
- package-lock.json
name: Render CSS and Javascript
jobs:
compress-everything:
name: Render css/javascript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clean
run: rm -rf inst/pkgdown/assets/assets/
- uses: actions/setup-node@v4
- run: npm install
- name: Comple js
run: bash squash-a-script.sh
- name: Compile sass
run: bash squash-sass.sh
- name: Commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add assets/ || echo ""
git add inst/ || echo ""
git commit -m 'regenerated css/js' || echo "No changes to commit"
git push origin || echo "No changes to commit"