Merge pull request #7 from asfadmin/test #7
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: 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 |