From af3413e3c580efd438ea2a1fa8766ec8f677f817 Mon Sep 17 00:00:00 2001 From: Michael Tamaki Date: Tue, 23 Jan 2024 05:52:07 +0000 Subject: [PATCH 1/2] michaels ace in the hole --- .github/workflows/nextjs.yml | 35 +++++++++++++++++++---------------- next.config.js | 1 + 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 541cc87..65b1b3d 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -4,13 +4,16 @@ # name: Deploy Next.js site to Pages +# on: +# # Runs on pushes targeting the default branch +# push: +# branches: ["main"] + on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] + [push] - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + # # Allows you to run this workflow manually from the Actions tab + # workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: @@ -82,14 +85,14 @@ jobs: with: path: ./out - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + # # Deployment job + # deploy: + # environment: + # name: github-pages + # url: ${{ steps.deployment.outputs.page_url }} + # runs-on: ubuntu-latest + # needs: build + # steps: + # - name: Deploy to GitHub Pages + # id: deployment + # uses: actions/deploy-pages@v2 diff --git a/next.config.js b/next.config.js index 79ab98a..8be709e 100644 --- a/next.config.js +++ b/next.config.js @@ -3,6 +3,7 @@ const nextConfig = { reactStrictMode: true, images: { domains: ["avatars.githubusercontent.com"], + unoptimized: true, }, }; From 902c0b6fc98951bc941b1111c2f6ea65e366de14 Mon Sep 17 00:00:00 2001 From: Michael Tamaki Date: Tue, 23 Jan 2024 05:56:30 +0000 Subject: [PATCH 2/2] Uncomment github action stuffs --- .github/workflows/nextjs.yml | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 65b1b3d..541cc87 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -4,16 +4,13 @@ # name: Deploy Next.js site to Pages -# on: -# # Runs on pushes targeting the default branch -# push: -# branches: ["main"] - on: - [push] + # Runs on pushes targeting the default branch + push: + branches: ["main"] - # # Allows you to run this workflow manually from the Actions tab - # workflow_dispatch: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: @@ -85,14 +82,14 @@ jobs: with: path: ./out - # # Deployment job - # deploy: - # environment: - # name: github-pages - # url: ${{ steps.deployment.outputs.page_url }} - # runs-on: ubuntu-latest - # needs: build - # steps: - # - name: Deploy to GitHub Pages - # id: deployment - # uses: actions/deploy-pages@v2 + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2