🔥 remove deploying to github pages

This commit is contained in:
Zechariah 2022-12-25 02:13:55 +08:00 committed by zS1L3NT
parent ed3b4127f8
commit 89af69cd41
1 changed files with 0 additions and 33 deletions

View File

@ -1,33 +0,0 @@
name: Deploy Docs
on:
push:
branches:
- main
paths:
- docs/**/*.*
- .github/workflows/deploy-docs.yml
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Performing Repository Checkout
uses: actions/checkout@v2
- name: Performing Pnpm Install on Workspace
uses: pnpm/action-setup@v2.2.2
with:
version: 6.0.2
run_install: true
- name: Building VuePress Docs
run: pnpm run docs:build
- name: Creating CNAME file
run: echo "ytmusic-api.zectan.com" > docs/.vuepress/dist/CNAME
- name: Deploying with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
pnpx -y gh-pages -d docs/.vuepress/dist -u "github-actions-bot <support+actions@github.com>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}