doc: update README with multiple jobs
This commit is contained in:
1 parent
0928a61551
commit
ceb88d8fa1
1 file changed
+18
-5
@@ -188,7 +188,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-hexo:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -219,16 +219,29 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup Git Infomation
|
- name: Setup Git Infomation
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name '名字'
|
git config --global user.name 'Leon Xu'
|
||||||
git config --global user.email '邮件'
|
git config --global user.email 'dcwinfield362@gmail.com'
|
||||||
|
|
||||||
- name: Deploy Hexo
|
- name: Deploy Hexo
|
||||||
run: |
|
run: |
|
||||||
hexo clean
|
hexo clean
|
||||||
hexo generate
|
hexo generate
|
||||||
hexo deploy
|
hexo deploy
|
||||||
|
- name: Upload result from build job
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: public
|
||||||
|
path: /public
|
||||||
|
deploy-to-website:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
- name: 📂 Sync files
|
steps:
|
||||||
|
# check it to your workflow can access it
|
||||||
|
# from: https://github.com/actions/checkout
|
||||||
|
- name: Get latest code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# from: https://github.com/actions/setup-node
|
||||||
|
- name: Sync files
|
||||||
uses: SamKirkland/FTP-Deploy-Action@4.1.0
|
uses: SamKirkland/FTP-Deploy-Action@4.1.0
|
||||||
with:
|
with:
|
||||||
server: ftp.samkirkland.com
|
server: ftp.samkirkland.com
|
||||||
|
|||||||
Reference in new issue
Block a user