Open xgqfrms opened 1 year ago
https://www.cnblogs.com/xgqfrms/p/12818058.html
https://www.cnblogs.com/xgqfrms/p/16538751.html
https://docs.github.com/cn/actions
https://github.com/xgqfrms/SwiftUI-In-Action
https://github.com/xgqfrms/hello-github-actions
https://github.com/xgqfrms/GitHub-Actions-All-in-One
https://www.cnblogs.com/xgqfrms/p/16584689.html
https://github.com/xgqfrms/GitHub-Actions-All-in-One/blob/master/.github/workflows/dev-ops.yml
# This is a basic workflow to help you get started with Actions
name: 🚀 DevOps 👻 CI/CD
# 控制 action 何时运行
# 在 push 或 pull 请求时触发工作流程事件,但仅针对 master 分支
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# 一个 workflow 运行由可以串行或并行运行的一个或多个 jobs 组成
jobs:
# 此工作流程仅包含一个名为 "build" 的 job
build:
# job 将运行的 runner 类型(执行的系统环境 Linux/ macOS / Windows)
runs-on: ubuntu-latest
# 步骤表示将作为 job 一部分执行的一系列 tasks
steps:
# 在 $GITHUB_WORKSPACE下检出你的repository,以便你的 job 可以访问它
- uses: actions/checkout@v2
# 使用 runners shell 运行单个命令
- name: Run a one-line script ✅ 👨🏻💻
run: echo 正在执行单个命令!
# 使用 runners shell 运行一组命令
- name: Run a multi-line script ✅ 👨🏻💻
run: |
echo 正在执行多个命令的 lint
echo 正在执行多个命令的 test
echo 正在执行多个命令的 build
echo 正在执行多个命令的 deploy
echo 正在执行多个命令的 npm publish
echo finished 🎉
GitHub Actions for GitHub Pages Deploy
GitHub Pages Action 3.4K
https://github.com/peaceiris/actions-gh-pages
https://github.com/marketplace/actions/github-pages-action
扩展
Deploy to GitHub Pages 3.3K
https://github.com/JamesIves/github-pages-deploy-action
https://github.com/marketplace/actions/deploy-to-github-pages
构建,发布一条龙
gatsby-gh-pages-action 👎 275
https://github.com/enriikke/gatsby-gh-pages-action
https://github.com/marketplace/actions/gatsby-gh-pages-action