Skip to content

Commit

Permalink
deployment testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kareraolivier committed Mar 15, 2024
1 parent af8dffb commit c20b045
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- ft/dev-deployment # or your default branch

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "14" # or the version you're using

- name: Install dependencies
run: npm ci

- name: Build and Export
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
3 changes: 3 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: {
export: true,
},
};

export default nextConfig;
4 changes: 2 additions & 2 deletions src/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ export const Header = () => {
<div className="flex flex-wrap justify-between items-center gap-y-24 border-b-8 border-dashed px-8 mx-auto">
<ResourceSection />
<Image
src="../../../public/images/smallArrow.png"
src="/public/images/smallArrow.png"
alt="arrow"
width={100}
height={100}
/>
<PracticeSection />
<Image
src="../../../public/images/smallArrow.png"
src="/public/images/smallArrow.png"
alt="arrowtwo"
width={100}
height={100}
Expand Down

0 comments on commit c20b045

Please sign in to comment.