fix : audi perm form #20
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: Build and Deploy | |
| on: | |
| push: | |
| branches: | |
| - main # Trigger the workflow on push to the main branch | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Git repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Build Next.js project | |
| run: yarn build | |
| - name: Upload static site as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact | |
| path: dist | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact | |
| path: dist | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./dist # The folder containing your static files | |
| publish_branch: gh-pages # Deploy to the gh-pages branch | |
| force_orphan: true # Create an orphan branch if it doesn't exist | |
| keep_files: true |