Skip to content

Merge pull request #140 from bridgefoundry/dm-add-strategic-plan #26

Merge pull request #140 from bridgefoundry/dm-add-strategic-plan

Merge pull request #140 from bridgefoundry/dm-add-strategic-plan #26

Workflow file for this run

name: Build and deploy website
on:
workflow_dispatch:
push:
branches:
- main
paths:
- docs/**
- mkdocs.yml
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs
- name: Deploy
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ github.token }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: |
# set push info to the last commit's author
git config user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
git remote set-url --push origin https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git
mkdocs gh-deploy --verbose --force