-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 866 Bytes
/
compile.yml
File metadata and controls
41 lines (35 loc) · 866 Bytes
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
on:
push:
branches:
- master
jobs:
compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install
run: |
npm install -g typescript
npm install -g sass
- name: compile ts
run: tsc
- name: compile scss
run: sass assets/style
- name: config
run: |
git config user.email "fred@xpple.dev"
git config user.name = "xpple"
- name: change branch
run: git checkout -b compiled
- name: commit changes
run: |
git add -A
git commit -m "[AUTO] Compile" -a
- name: push changes
uses: ad-m/github-push-action@master
with:
force: true
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: compiled