change to hash router #3
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
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: deploy to page | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
shell: bash | |
run: | | |
echo "::group::Build" | |
npm ci | |
npm run build | |
echo "::endgroup::" | |
- name: Upload | |
uses: actions/upload-pages-artifact@v3.0.1 | |
with: | |
path: dist | |
- id: Deploy | |
name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4.0.5 | |
with: | |
token: ${{ github.token }} |