-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (52 loc) · 1.59 KB
/
docs.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build and Deploy Docs
on:
push:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: |
mkdir -p docs
cp -r local/* docs/
mkdir -p docs/flexo-mms-layer1-service
mkdir -p docs/flexo-mms-auth-service
mkdir -p docs/flexo-mms-store-service
chmod -R 755 submodules/
rm .gitignore
cp -r submodules/flexo-mms-layer1-service/docs/* docs/flexo-mms-layer1-service/
cp -r submodules/flexo-mms-auth-service/docs/* docs/flexo-mms-auth-service/
cp -r submodules/flexo-mms-store-service/docs/* docs/flexo-mms-store-service/
- run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
git push origin --delete build/docs
git checkout -b build/docs
git add docs/
git commit -m 'build: docs'
git push -u origin build/docs
# - uses: EndBug/add-and-commit@v9
# with:
# add: docs
# fetch: true
# message: 'docs: build'
# new_branch: build/docs
# # pull: '--rebase --autostash'
# push: true
# deploy:
# needs: build
# permissions:
# pages: write
# id-token: write
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# steps:
# - name: deploy
# id: deploymment
# uses: actions/deploy-pages@v2