Skip to content

Commit

Permalink
update deployment workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kajgm committed Jul 15, 2024
1 parent f101ad2 commit f6247ef
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,33 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: Install
run: npm ci

- name: Build
run: npm run build
run: |
npm ci
npm run build
- name: Deploy to gh-pages branch
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npx gh-pages -d build -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "build"
path: "out"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.9.0
v18.18.0
8 changes: 7 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
output: "export",
reactStrictMode: true,
images: {
unoptimized: true,
},
};

export default nextConfig;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"dev": "next dev",
"deploy": "gh-pages -d build --cname kajgm.com",
"build": "next build",
"export": "next export",
"start": "next start",
"lint": "next lint",
"test": "jest",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f6247ef

Please sign in to comment.