Merge pull request #19 from Open-MBEE/fix/pwd #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/mms5-layer1-service | |
mkdir -p docs/mms5-auth-service | |
mkdir -p docs/mms5-store-service | |
chmod -R 755 submodules/ | |
rm .gitignore | |
cp -r submodules/mms5-layer1-service/docs/* docs/mms5-layer1-service/ | |
cp -r submodules/mms5-auth-service/docs/* docs/mms5-auth-service/ | |
cp -r submodules/mms5-store-service/docs/* docs/mms5-store-service/ | |
#- uses: docker://pandoc/core:3 | |
# with: | |
# args: "submodules/mms5-layer1-service/README.md -t rst -o docs/mms5-layer1-service/index.rst" | |
- 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 | |