Skip to content

Merge pull request #7 from asfadmin/test #7

Merge pull request #7 from asfadmin/test

Merge pull request #7 from asfadmin/test #7

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
python -m phrase-translate-to-md Discovery-MkDocs
- name: deploy to github.io
if: github.ref == 'refs/heads/prod'
shell: bash -l {0}
run: |
echo $PWD
cd Discovery-MkDocs
ls -l
python -m mkdocs gh-deploy --force