最佳答案
我有一个 GitHub 动作工作流文件@myrepo/. GitHub/workflow/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
当我按到网页分支时,action 选项卡里什么都没有发生,我不知道我是否有语法错误,或者是否完全没有正确设置,我过去在这个回购中出现过与语法有关的错误,比如 every step must define a 'uses' or 'run' key
,这对我来说表明 Github 确实认识到了工作流