Skip to content

Commit 6f97430

Browse files
authored
create shedule.yml
自动化部署
1 parent 3824cb0 commit 6f97430

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/schedule.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: schedule
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Clone repository
13+
uses: actions/checkout@v2
14+
15+
- name: Install deno
16+
uses: denolib/setup-deno@master
17+
18+
- name: Run deno
19+
run: |
20+
git config --local user.email "2979986590@qq.com"
21+
git config --local user.name "webVueBlog"
22+
git remote set-url origin https://${{ github.actor }}:${{ secrets.AWESOME_CSS_TOKEN }}@github.com/${{ github.repository }}
23+
git pull
24+
set -e
25+
yarn build
26+
printf "打包成功\n"
27+
cd docs/.vuepress/dist
28+
git init
29+
git checkout -b dist
30+
git add -A
31+
git commit -m 'awesome-css github-pages'
32+
git push
33+
printf "提交成功\n"

0 commit comments

Comments
 (0)