add plot twist #91
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 to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '18' | |
| - name: List directories for debugging | |
| run: | | |
| echo "Current directory:" | |
| pwd | |
| echo "Directory contents:" | |
| ls -la | |
| - name: Install Dependencies | |
| working-directory: ./portfolio | |
| run: npm install | |
| - name: Build | |
| working-directory: ./portfolio | |
| env: | |
| NEXT_PUBLIC_BASE_PATH: '' # For username.github.io repos, this should be empty | |
| run: npm run build | |
| - name: Add .nojekyll file | |
| working-directory: ./portfolio | |
| run: touch out/.nojekyll | |
| - name: Deploy to GitHub Pages | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: portfolio/out | |
| token: ${{ secrets.PERSONAL_TOKEN }} |