更新日志 - Web3 自学指南 #1
Replies: 1 comment
-
|
当用户配置了 GitHub Actions 部署工作流,并将本地仓库的更改提交到 GitHub 远程仓库之后,GitHub Actions 会自动执行一系列操作来构建并部署网站,过程大致如下: (1)本地提交并推送更改 (2)触发 GitHub Actions 工作流 on:
push:
branches:
- main # 当推送到 main 分支时触发工作流关键步骤: (3)工作流执行步骤 name: Deploy documentation to GitHub Pages
on:
push:
branches:
- master
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip3 install -U -r requirements.txt
- name: Build the documentation
run: |
mkdocs build
- name: Deploy to GitHub Pages
run: |
mkdocs gh-deploy --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub 自动提供的 token工作流的每一步详细解释:
(4)部署完成 (5)结果验证 (6)问题排查 总结
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
更新历史 - Web3 自学指南
https://lifefindsitsway.wiki/changelog/
Beta Was this translation helpful? Give feedback.
All reactions