chore: update readme #29
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 by Branch | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - valaxy | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: 7 | |
| run_install: true | |
| - name: Use Node.js LTS | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: lts/* | |
| registry-url: https://registry.npmjs.org/ | |
| cache: pnpm | |
| - name: π Build Valaxy Blog | |
| run: npm run build | |
| env: | |
| NODE_OPTIONS: --max-old-space-size=8192 | |
| - name: Deploy | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages # The branch the action should deploy to. | |
| folder: demo/dist # The folder the action should deploy. |