Skip to content

Commit

Permalink
Change to src dir for bulid in action
Browse files Browse the repository at this point in the history
  • Loading branch information
davidxw committed Aug 1, 2023
1 parent 21e5611 commit 946fbf8
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/open-ai-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src

steps:
- name: 🌱 Checkout to the branch
Expand All @@ -27,17 +24,18 @@ jobs:

- name: βš™οΈ npm install and build
run: |
cd src
npm install
npm run build --if-present
- name: πŸ“‚ Copy standalone into the root
run: cp -R .next/standalone ./site-deploy
run: cp -R src/.next/standalone ./site-deploy

- name: πŸ“‚ Copy static into the .next folder
run: cp -R .next/static ./site-deploy/.next/static
run: cp -R src/.next/static ./site-deploy/.next/static

- name: πŸ“‚ Copy Public folder
run: cp -R public ./site-deploy/public
run: cp -R src/public ./site-deploy/public

- name: πŸ“¦ Package Next application
run: |
Expand All @@ -48,13 +46,10 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Nextjs-site
path: ./site-deploy/Nextjs-site.zip
path: ./srcsite-deploy/Nextjs-site.zip

deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src
needs: build
environment:
name: "Production"
Expand Down

0 comments on commit 946fbf8

Please sign in to comment.