From 3dfa8ba18832bd7e4435ad27cb1f5026d85ceb11 Mon Sep 17 00:00:00 2001 From: Adil Shehzad Date: Sat, 20 Apr 2024 02:58:01 +0500 Subject: [PATCH] resolving CNAME issue --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 56884f9..0fbe371 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v2 with: - node-version: '20' # Set this to the Node.js version you are using + node-version: '20' # Set this to the Node.js version you are using - name: Install dependencies run: yarn install @@ -23,8 +23,11 @@ jobs: - name: Build run: yarn run build + - name: Copy CNAME to build directory + run: cp CNAME ./dist/CNAME # Ensure CNAME is copied to the correct directory for deployment + - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.ORG_TOKEN }} - publish_dir: ./dist # Set this to the output directory of Vite build + publish_dir: ./dist # Set this to the output directory of your Vite build