我有一个 GitHub 操作工作流文件 @ myrepo/.github/workflows/Build Webpage.yml 它包含以下内容:
name: Webpage Build
on:
push:
branches:
- webpage
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v2-beta
with:
node-version: '12'
- name: install deps and predeploy
run: |
npm ci
npm run predeploy
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.5.2
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
BRANCH: gh-pages
FOLDER: build
Run Code Online (Sandbox Code Playgroud)
当我推到网页分支什么也没有发生在动作片的一切我不能说,如果我有一个语法错误,或者如果事情是完全不正确设置,我在过去的这个回购了关于语法错误像every step must define a 'uses' or 'run' key 这对我来说,Github 确实识别了工作流程