fix: bump python version to 3.9 #124
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: | |
- dev | |
jobs: | |
build_and_deploy: | |
name: Build site and deploy | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: opensarlab-docs | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: 3.9 | |
activate-environment: opensarlab-docs | |
environment-file: opensarlab-docs/environment.yml | |
- name: Deploy test website | |
shell: bash -l {0} | |
run: | | |
cd opensarlab-docs | |
# Remove conflicting CNAME for project site | |
rm docs/CNAME | |
# Set site URL for dev site | |
sed -i 's|site_url: https://opensarlab-docs.asf.alaska.edu/|site_url: https://opensarlab-docs.asf.alaska.edu/opensarlab-docs/|' mkdocs.yml | |
mkdocs gh-deploy --force |