Skip to content

设置时间戳的时区为北京时间 #11

设置时间戳的时区为北京时间

设置时间戳的时区为北京时间 #11

Workflow file for this run

name: sync_to_gitee
on:
pull_request:
push:
branches:
- main
jobs:
build_doc:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Setup Python
uses: actions/[email protected]
with:
python-version: "3.11"
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install sphinx
shell: bash
working-directory: docs
run: |
pip install -U sphinx
pip install -r requirements.txt
- name: Build docs
shell: bash
working-directory: docs
run: |
rm -rf build
sphinx-build source build
- name: Commit changes
uses: EndBug/[email protected]
with:
default_author: github_actions
message: "[bot] Build gitee pages"
sync_and_publish:
runs-on: ubuntu-latest
needs: build_doc
steps:
- name: Sync to gitee.com
uses: wearerequired/[email protected]
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with:
source-repo: [email protected]:FeignClaims/vscode_cpp_starter.git
destination-repo: [email protected]:cpp_tutorial/vscode_cpp_starter.git
- name: Build Gitee Pages
uses: yanglbme/[email protected]
with:
gitee-username: FeignClaims
gitee-password: ${{ secrets.GITEE_PASSWORD }}
gitee-repo: cpp_tutorial/vscode_cpp_starter
branch: main
directory: docs/build/