From ceb88d8fa14b08d52f4785c2a8fb60da69e0637c Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Wed, 14 Jul 2021 10:21:42 -0700 Subject: [PATCH] doc: update README with multiple jobs --- README.md | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index efd0a6e..0f80e2b 100644 --- a/README.md +++ b/README.md @@ -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