add cname file before deploying to github pages

This commit is contained in:
Zechariah 2022-05-31 01:53:40 +08:00
parent c5a40fb673
commit c912078967
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ jobs:
- name: Building VuePress Docs - name: Building VuePress Docs
run: pnpm run docs:build run: pnpm run docs:build
- name: Creating CNAME file
run: echo "ytmusic-api.zectan.com" > docs/.vuepress/dist/CNAME
- name: Deploying with gh-pages - name: Deploying with gh-pages
run: | run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git