Skip to content

Commit 2584a5b

Browse files
committed
using cname feature
1 parent fbf2164 commit 2584a5b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/deploy-staging.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
- name: Event triggered by
1313
run: |
1414
echo source: ${{github.event.client_payload.source}}, workflow: ${{github.event.client_payload.workflow}}, action_run_id: ${{github.event.client_payload.run_id}}, action_run_number: ${{github.event.client_payload.run_number}}, sha: ${{ github.event.client_payload.sha }}, github_ref: ${{ github.event.client_payload.ref }}
15+
1516
- name: Checking Out https://github.com/phcode-dev/phoenix
1617
uses: actions/checkout@v2
1718
with:
@@ -23,18 +24,16 @@ jobs:
2324
npm install
2425
npm run release
2526
shell: bash
27+
2628
- name: Copying release artifacts to public folder
2729
run: |
2830
mkdir -p ./public
2931
cp -r ./phoenix/dist/. ./public
3032
shell: bash
31-
- name: Creating CNAME for github page custom domain activation
32-
run: |
33-
echo "staging.phcode.dev" >> ./public/CNAME
34-
shell: bash
3533
- name: Deploy Github Pages
3634
uses: peaceiris/actions-gh-pages@v3
3735
if: github.ref == 'refs/heads/main'
3836
with:
3937
github_token: ${{ secrets.GITHUB_TOKEN }}
4038
publish_dir: ./public
39+
cname: staging.phcode.dev

0 commit comments

Comments
 (0)