๐ Fix router history mode to use createWebHashHistory #7
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: auto deploy ๐ | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| permissions: | |
| contents: write | |
| pages: write | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: setup-node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20.x' | |
| # ๅฎ่ฃ pnpm | |
| - name: Install pnpm | |
| run: npm install pnpm -g | |
| # ๅฎ่ฃ ไพ่ต | |
| - name: Install dependencies | |
| run: pnpm i | |
| # ๆๅ | |
| - name: Build application ๐ง | |
| run: pnpm run build | |
| # ้จ็ฝฒ https://github.com/JamesIves/github-pages-deploy-action | |
| - name: Deploy ๐ | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| if: github.ref == 'refs/heads/master' | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: gh-pages | |
| folder: dist | |
| clean: true |