Skip to content

Update deploy.yml

Update deploy.yml #2

Workflow file for this run

name: 部署
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Get current time
uses: josStorer/[email protected]
id: current-time
with:
format: YYYY-MM-DD HH:mm:SS
utcOffset: "+08:00"
- run: npm install
- run: npm run docs:build
- run: git checkout gh-page
- run: git add .
- run: git commit -am "Deploy Page: ${{ steps.current-time.outputs.formattedTime }}"

Check failure on line 27 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 27
- run: git push -f origin gh-page