Skip to content

Commit 3d889c5

Browse files
Update and rename build.yml to fix_css.yml
1 parent 5d92e73 commit 3d889c5

File tree

2 files changed

+33
-68
lines changed

2 files changed

+33
-68
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

.github/workflows/fix_css.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: fix up CSS files
2+
on:
3+
push:
4+
branches: [main]
5+
paths:
6+
- static/css/saturate.py
7+
- static/css/*_orig.css
8+
jobs:
9+
fix-up-css:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: clone repo
13+
uses: actions/checkout@v3
14+
- name: set up python
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: 3.10.x
18+
- name: fix css
19+
run: |
20+
cd static/css/
21+
python3 saturate.py
22+
cd ../../
23+
- name: commit changes # copied from ad-m/github-push-action
24+
run: |
25+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
26+
git config --local user.name "github-actions[bot]"
27+
git add -A
28+
git commit -m "fixed css" -a
29+
- name: push built files
30+
uses: ad-m/github-push-action@40bf560936a8022e68a3c00e7d2abefaf01305a6
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
branch: ${{ github.ref }}

0 commit comments

Comments
 (0)