Repository navigation
feat: migrate antv site to astro (#205) #44
This file contains hidden or 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: Deploy | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy-site: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build site | |
| run: npm run build | |
| - run: echo 'antv.vision' > dist/CNAME | |
| - run: | | |
| cd dist | |
| git init | |
| git config --local user.name antv | |
| git config --local user.email github@antv.vision | |
| git add . | |
| git commit -m "update by release action" | |
| - uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{secrets.PERSONAL_ACCESS_TOKEN}} | |
| directory: dist | |
| branch: gh-pages | |
| force: true |