Skip to content

Surface Temperature PFS Version 6.0.0 #252

Surface Temperature PFS Version 6.0.0

Surface Temperature PFS Version 6.0.0 #252

Workflow file for this run

name: CI
on:
push:
branches:
- main
paths:
- 'assets/**'
- 'glossary/**'
- 'pfs/**'
- 'references/**'
- 'requirements/**'
- 'sections/**'
- 'templates/**'
pull_request:
types:
- opened
- synchronize
paths:
- 'assets/**'
- 'glossary/**'
- 'pfs/**'
- 'references/**'
- 'requirements/**'
- 'sections/**'
- 'templates/**'
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run validation
run: ceos-ard validate
generate:
# run once, see https://github.com/orgs/community/discussions/57827
runs-on: ubuntu-latest
needs: validate
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install dependencies
run: pip install -r requirements.txt
# Validate to ensure we only build when it has a chance to succeed
- name: Install pandoc
run: |
curl https://github.com/jgm/pandoc/releases/download/3.8.2.1/pandoc-3.8.2.1-1-amd64.deb -L -o pandoc.deb
sudo dpkg -i pandoc.deb
pandoc --version
- name: Install pandoc-crossref
run: |
curl https://github.com/lierdakil/pandoc-crossref/releases/download/v0.3.22/pandoc-crossref-Linux-X64.tar.xz -L -o pandoc-crossref.tar.xz
tar -xf pandoc-crossref.tar.xz
sudo mv pandoc-crossref /usr/local/bin
pandoc-crossref --version
- name: Install browser for PDF generation
run: python -m playwright install chromium --with-deps
- name: Generate all PFS
run: ceos-ard generate-all -o build --self-contained
- name: Archive generated PFS artifacts
uses: actions/upload-artifact@v4
with:
name: documents
path: build
deploy-latest:
if: >
github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: generate
permissions:
contents: write
steps:
- name: Download PFS artifacts
uses: actions/download-artifact@v4
with:
name: documents
github-token: ${{ secrets.GITHUB_TOKEN }}
path: documents/
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: documents
destination_dir: latest
commit_message: Deploy latest version of PFS documents
exclude_assets: '{assets/**,*.{md,bib}}'