# main.yml# Workflow's namename:Build Electron App For Win/Mac# Workflow's triggeron:push:tags:-'v*.*.*'# Workflow's jobsjobs:# job's idrelease:# job's namename:build and release electron app# the type of machine to run the job onruns-on:${{ matrix.os }}# create a build ...
on:# Trigger the workflow on push or pull request,# but only for the main branchpush:branches:-mainpull_request:branches:-main# Also trigger on page_build, as well as release created eventspage_build:release:types:# This configuration does not affect the page_build event ab...
on:# Trigger the workflow on push or pull request,# but only for the main branchpush:branches:-mainpull_request:branches:-main# Also trigger on page_build, as well as release created eventspage_build:release:types:# This configuration does not affect the page_build event above...
Some events have activity types that give you more control over when your workflow should run. Useon.<event_name>.typesto define the type of event activity that will trigger a workflow run. For example, theissue_commentevent has thecreated,edited, anddeletedactivity types. If your workfl...
接下来让我们看看应用要如何接入 Github Actions 以create-ssr-app 为例 创建配置文件 $ mkdir -p .github/workflows $ touch .github/workflows/CI.yaml 监听Git 命令 在push 代码 以及 合并 PR 的时候触发 CI 工作 name: CI # Controls when the action will run. Triggers the workflow on push or pull...
pull_request:branches:-master# Also trigger on page_build, as well as release created eventspage_build:release:types:# This configuration does not affect the page_build event above-created 详细文档请参考: 触发事件 jobs jobs可以包含一个或多个job,如: ...
# Also trigger on page_build, as well as release created events page_build: release: types: # This configuration does not affect the page_build event above - created 详细文档请参考:触发事件 jobs jobs 可以包含一个或多个 job ,如:
--data '{"event_type": "TRIGGER_KEYWORDS"}' 需要要替换的值: :owner- 用户名 :repo- 需要触发的 Github Action 所在的仓库名称 ACTIONS_TRIGGER_TOKEN- 带有 repo 权限的 Personal access token TRIGGER_KEYWORDS- 自定义 Webhook 事件名称,可以为任意值,Actions 列表中会显示此名称,更多信息请参见下文。
Aneventis a specific activity in a repository that triggers aworkflowrun. For example, an activity can originate from GitHub when someone creates a pull request, opens an issue, or pushes a commit to a repository. You can also trigger a workflow to run on aschedule, byposting to a REST ...
进入Actions: 进入到如下界面,默认带了简单的语法和提示: 根据自我认知来介绍以下我知道的命令/语法: # This is a basic workflow to help you get started with Actions name: CI #CI/CD项目名称 固定值 # Controls when the action will run. Triggers the workflow on push or pull request # events but...