diff --git a/.github/workflows/node.js.branch.deploy.push.yml b/.github/workflows/node.js.branch.deploy.push.yml index cd946999..4265202a 100644 --- a/.github/workflows/node.js.branch.deploy.push.yml +++ b/.github/workflows/node.js.branch.deploy.push.yml @@ -35,7 +35,7 @@ jobs: - name: Build the website run: npm run build - name: Creating the CNAME file - run: echo ${{ github.ref_name }} + '.ghostvaibhav.com' > ./build/CNAME + run: echo '${{ github.ref_name }}.ghostvaibhav.com' > ./build/CNAME - name: Pushes to another repository uses: cpina/github-action-push-to-another-repository@main env: diff --git a/.github/workflows/node.js.branch.deploy.yml b/.github/workflows/node.js.branch.deploy.yml index 4dcc5fb6..b3cb65f2 100644 --- a/.github/workflows/node.js.branch.deploy.yml +++ b/.github/workflows/node.js.branch.deploy.yml @@ -50,7 +50,7 @@ jobs: - name: Build the website run: npm run build - name: Creating the CNAME file - run: echo ${{ github.ref_name }} + '.ghostvaibhav.com' > ./build/CNAME + run: echo '${{ github.ref_name }}.ghostvaibhav.com' > ./build/CNAME - name: Creating a temporary GitHub repository for the build run: | curl -L \ @@ -87,9 +87,4 @@ jobs: -H "Authorization: Bearer ${{ secrets.GENERATE_TEMPORARY_BRANCH_WEBSITE }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/Temporary-Feature-Branch/${{ github.ref_name }}-Simple/pages \ - -d '{ - "build_type": "legacy", - "source": { - "branch": "main", - } - }' + -d '{"build_type":"legacy","source":{"branch":"main","path":"/"}}'