mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 19:28:14 +08:00
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:
parent
dc9eafdf93
commit
8e32034aa5
18
.github/workflows/staging-preview.yml
vendored
18
.github/workflows/staging-preview.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user