Deploy Vue app to GitHub Pages #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: Deployment for vue application | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| pages: write | |
| id-token: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Setup node | |
| uses: actions/setup-node@v5 | |
| - name: Install packages | |
| run: npm i | |
| - name: Build project | |
| run: npm run build | |
| # fix this issue | |
| - name: Upload to GitHub Pages | |
| uses: actions/deploy-pages@v4 | |
| with: | |
| name: ./dist |