-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.5 KB
/
main.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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Deploy Some Config to Github Repository on Main Branch...
on:
workflow_dispatch:
schedule:
- cron: '30 1 * * *'
jobs:
build-deploy:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: true
fetch-depth: 1
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'lts/Jod'
check-latest: true
- name: Setup ESBuild
run: |
npm install esbuild@latest --global
esbuild --version
- name: Build with Node
run: |
node conf/generate.blackmatrix7.mjs
node conf/generate.blocklist.mjs
node conf/generate.esbuild.mjs
node conf/generate.filter.mjs
- name: Deploy to Github Repository
run: |
git config --global user.email ${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com
git config --global user.name ${{ github.actor }}
git status
git add --all
git commit -m '更新分流重写'
git pull --rebase --autostash
git push
# - name: Bump Version and Push Tag
# uses: anothrNick/github-tag-action@v1
# env:
# DEFAULT_BUMP: 'minor'
# FORCE_WITHOUT_CHANGES_PRE: false
# FORCE_WITHOUT_CHANGES: false
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# PRERELEASE: false
# RELEASE_BRANCHES: 'main'
# WITH_V: false