Skip to content

updates for October 2024 #105

updates for October 2024

updates for October 2024 #105

Workflow file for this run

on:
workflow_dispatch:
pull_request:
branches: main
push:
branches: main
name: Quarto Render and Publish
jobs:
build-deploy:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install system dependencies
run: sudo apt update && sudo apt install ghostscript python3-tk
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python
run: uv python install
- name: Install the project
run: uv sync --all-extras --dev
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
- name: Make .netrc
env:
NETRC_LOGIN: ${{ secrets.NETRC_LOGIN }}
NETRC_PASSWORD: ${{ secrets.NETRC_PASSWORD }}
run: |
cat <<EOT > ~/.netrc
machine urs.earthdata.nasa.gov
login ${NETRC_LOGIN}
password ${NETRC_PASSWORD}
EOT
- name: Render
env:
CPL_VSIL_CURL_USE_HEAD: FALSE
GDAL_DISABLE_READDIR_ON_OPEN: YES
GDAL_HTTP_COOKIEJAR: /tmp/cookies.txt
GDAL_HTTP_COOKIEFILE: /tmp/cookies.txt
run: |
uv run quarto render
- name: Publish
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: quarto-dev/quarto-actions/publish@v2
with:
target: netlify
render: "false"
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}