Skip to content

Commit c935389

Browse files
committed
Move to BadgerHub
1 parent 595930d commit c935389

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

.github/workflows/nextjs.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,6 @@ jobs:
4040
uses: actions/checkout@v4
4141
- name: Update Submodules
4242
run: git submodule update --init --recursive --remote
43-
- name: Detect package manager
44-
working-directory: ./
45-
id: detect-package-manager
46-
run: |
47-
if [ -f "./yarn.lock" ]; then
48-
echo "manager=yarn" >> $GITHUB_OUTPUT
49-
echo "command=install" >> $GITHUB_OUTPUT
50-
echo "runner=yarn" >> $GITHUB_OUTPUT
51-
exit 0
52-
elif [ -f "./package.json" ]; then
53-
echo "manager=npm" >> $GITHUB_OUTPUT
54-
echo "command=ci" >> $GITHUB_OUTPUT
55-
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
56-
exit 0
57-
elsenpm
58-
echo "Unable to determine package manager"
59-
exit 1
60-
fi
6143
- name: Setup Node
6244
uses: actions/setup-node@v3
6345
with:
@@ -67,9 +49,7 @@ jobs:
6749

6850
- name: Build with Next.js
6951
run: |
70-
yarn run export
71-
find ./out | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/"
72-
52+
pnpm run build
7353
7454
- name: Upload artifact
7555
uses: actions/upload-pages-artifact@v3

next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const nextConfig = {
66
// Configure `pageExtensions` to include markdown and MDX files
77
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
88
basePath: '/BadgerHub',
9+
output: "export"
910
};
1011

1112

0 commit comments

Comments
 (0)