Skip to content

Merge pull request #9 from asfadmin/test #9

Merge pull request #9 from asfadmin/test

Merge pull request #9 from asfadmin/test #9

name: Deploy to Github.io
on:
push:
branches:
- prod
workflow_dispatch:
jobs:
build_and_deploy:
name: Build site and deploy
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
with:
path: Discovery-MkDocs
- name: Setup Python
run: |
python -m pip install --upgrade pip
python -m pip install -r Discovery-MkDocs/requirements.txt
- name: deploy to github.io
if: github.ref == 'refs/heads/prod'
shell: bash -l {0}
run: |
echo $PWD
cd Discovery-MkDocs
ls -l
python phrase-translate-to-md.py Discovery-MkDocs
python -m mkdocs gh-deploy --force