-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.05 KB
/
vuepress-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build and Deploy
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Build VuePress
run: |
yarn
yarn vuepress build src/um-stripe
yarn vuepress build src/um-extended
yarn vuepress build src/um-social-login
- name: Commit files
run: |
mkdir deploy/um-stripe/
mkdir deploy/extended/
mkdir deploy/social-login/
mv um-stripe/dist/* deploy/um-stripe/
mv extended/dist/* deploy/extended/
mv social-login/dist/* deploy/social-login/
sed -i '1d' .gitignore
cd deploy/
git init
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -a -m "Deploy Stripe Docs"
git push --force https://username:${{ secrets.DOCS_V3_ACTION_SECRET }}@github.com/ultimatemember/docs-v3.git master:gh-pages
rm -fr .git