diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 974fcb9..cf05164 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,13 +1,9 @@ -# Sample workflow for building and deploying a Next.js site to GitHub Pages -# -# To get started with Next.js see: https://nextjs.org/docs/getting-started -# name: Deploy Next.js site to Pages on: # Runs on pushes targeting the default branch push: - branches: ["master"] + branches: ["master", "feat/v2"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -51,7 +47,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: "20" + node-version: "22" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages uses: actions/configure-pages@v5 @@ -75,6 +71,12 @@ 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 + uses: actions/checkout@v4 + with: + ref: release/v1 + path: ./out/v1 - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..8859363 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +miditorio.com