chore(project): move staging preview to gh-pages (#3446)

* chore(project): move staging preview to gh-pages

* chore(project): update config

* chore(project): delete staging branch

* chore(project): delete useless file

* chore(project): delete commit message

* chore: update target branch

* chore: update typo

* chore: update bot token

* chore(project): ready for merge
This commit is contained in:
Aex 2021-09-17 11:03:19 +08:00 committed by GitHub
parent dc9eafdf93
commit 8e32034aa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ jobs:
- name: Pull Crowdin translations
run: cd docs && yarn crowdin download
- name: generate common locale
- name: Generate common locale
run: yarn docs:gen-locale
- name: Build website
@ -46,10 +46,12 @@ jobs:
env:
DOC_ENV: staging
- name: Deploy Site
run: |
export DEPLOY_DOMAIN=https://staging-preview-element-plus.surge.sh
echo "Deploy to $DEPLOY_DOMAIN"
npx surge --project ./docs/.vitepress/dist/ --domain $DEPLOY_DOMAIN --token $SURGE_TOKEN
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
- name: Deploy staging website
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
token: ${{ secrets.EP_BOT_TOKEN }}
branch: main
folder: docs/.vitepress/dist
repository-name: element-plus/staging
git-config-name: ElementPlusBot
git-config-email: hello@element-plus.org