Skip to content

Commit

Permalink
refactor: refactored the code to include minor changes to the script
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostVaibhav committed Jul 14, 2024
1 parent b46f60e commit d14ceee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.branch.deploy.push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/node.js.branch.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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":"/"}}'

0 comments on commit d14ceee

Please sign in to comment.