Skip to content

Commit

Permalink
update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mgabor3141 committed Oct 17, 2024
1 parent 3a08ffc commit 3b6fe56
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Next.js site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ['master', 'feat/v2']
branches: ['main', 'feat/v2']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -75,12 +75,14 @@ jobs:
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
# Checkout v1 into a folder inside the build output
- name: Checkout release/v1 branch into v1_src directory
- name: Checkout release/v1 branch into v1_root directory
uses: actions/checkout@v4
with:
ref: release/v1
path: ./out/v1
path: v1_root
- name: Copy v1 folder into v2 build output
run: |
cp -r ./v1_root/v1/ ./out/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit 3b6fe56

Please sign in to comment.