Merge pull request #854 from wwarriner/feat-globus-groups #464
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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash -el {0} | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Lint Markdown | |
uses: DavidAnson/markdownlint-cli2-action@v16 | |
with: | |
config: .markdownlint-cli2.jsonc | |
globs: "**/*.md" | |
- name: Setup Miniforge | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-version: latest | |
environment-file: build_env.yml | |
activate-environment: build | |
channels: conda-forge | |
conda-remove-defaults: "true" | |
- name: Build pages | |
run: mkdocs build --strict | |
build: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
needs: check | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Miniforge | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-version: latest | |
conda-solver: libmamba | |
environment-file: build_env.yml | |
activate-environment: build | |
- name: Build pages | |
run: mkdocs build --strict | |
- name: Setup | |
uses: actions/configure-pages@v5 | |
- name: Upload | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./site | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
needs: build | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
steps: | |
- name: Deploy | |
uses: actions/deploy-pages@v4 |