This repository has been archived by the owner on Oct 7, 2023. It is now read-only.
test: update test case snapshots #271
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Site Deploy | |
# on: | |
# workflow_dispatch: | |
# push: | |
# branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: yarn install | |
- run: npm run lint | |
publish-site: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: yarn install | |
- run: npm run site:build | |
- run: | | |
cd public | |
git init | |
git config --local user.name antv | |
git config --local user.email [email protected] | |
git add . | |
git commit -m "update by release action" | |
- uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
directory: public | |
branch: gh-pages | |
force: true |