Skip to content

Commit feb7b25

Browse files
authored
Create main.yml
1 parent 8a11c14 commit feb7b25

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Main
2+
'on':
3+
[push]
4+
jobs:
5+
compress-json:
6+
name: Compress Json
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Cancel Previous Runs
10+
uses: styfle/cancel-workflow-action@0.9.1
11+
with:
12+
access_token: ${{ github.token }}
13+
- name: Checkout 🛎️
14+
uses: actions/checkout@v2
15+
16+
- name: Sigin to git
17+
run: |
18+
git config --local user.email "action@github.com"
19+
git config --local user.name "GitHub Action"
20+
git pull
21+
22+
- name: Compress Json Script 🔧
23+
run: |
24+
chmod +x compress-json.sh
25+
./compress-json.sh
26+
27+
- name: Deploy 🚀
28+
uses: JamesIves/github-pages-deploy-action@v4.2.2
29+
with:
30+
branch: main
31+
folder: .

0 commit comments

Comments
 (0)