Fix/site srr css error (#4858) #132
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: site | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: ⤵️ Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: false | |
| - name: 🎉 Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: 🚧 Install | |
| run: | | |
| npm i pnpm@latest -g | |
| pnpm install | |
| - name: 🚀 Build site | |
| run: | | |
| cd ./site && pnpm run build | |
| cp ./CNAME ./dist/CNAME | |
| - name: 👩⚕️ Verify build output | |
| run: | | |
| if [ ! -d "dist" ]; then | |
| echo "Build output directory not found!" | |
| exit 1 | |
| fi | |
| - name: 🗂 Commit changes | |
| run: | | |
| cd dist | |
| 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.PERSONAL_ACCESS_TOKEN}} | |
| directory: dist | |
| branch: site | |
| force: true |