-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.06 KB
/
compile.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
38
39
40
41
42
name: Compile source code
env:
OUTPUT_BRANCH: release
OUTPUT: wiemantheme.theme.css
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Compile SCSS
run: npm run compile
- name: Commit changes
run: |
git config --global user.name 'wiemanboy'
git config --global user.email 'wiemanboy@gmail.com'
git checkout -b $OUTPUT_BRANCH
rm -rf .github
rm -rf node_modules
rm -rf src
rm -rf .gitignore
rm -rf package.json
rm -rf package-lock.json
rm -rf README.md
rm -rf $OUTPUT.map
git add .
git commit -m "Compile SCSS"
git push -f origin $OUTPUT_BRANCH