doc: update README with multiple jobs
This commit is contained in:
1 parent
0928a61551
commit
ceb88d8fa1
1 file changed
+19
-6
@@ -188,7 +188,7 @@ on:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-hexo:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@@ -219,16 +219,29 @@ jobs:
|
||||
|
||||
- name: Setup Git Infomation
|
||||
run: |
|
||||
git config --global user.name '名字'
|
||||
git config --global user.email '邮件'
|
||||
|
||||
git config --global user.name 'Leon Xu'
|
||||
git config --global user.email 'dcwinfield362@gmail.com'
|
||||
- name: Deploy Hexo
|
||||
run: |
|
||||
hexo clean
|
||||
hexo generate
|
||||
hexo deploy
|
||||
|
||||
- name: 📂 Sync files
|
||||
- name: Upload result from build job
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: public
|
||||
path: /public
|
||||
deploy-to-website:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
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
|
||||
with:
|
||||
server: ftp.samkirkland.com
|
||||
|
||||
Reference in new issue
Block a user