Skip to content

Fetch/Publish SLNID #117

Fetch/Publish SLNID

Fetch/Publish SLNID #117

Workflow file for this run

name: Fetch/Publish SLNID
on:
schedule:
- cron: '25 12 * * 1-5' # daily, MON-FRI
workflow_dispatch: # Allows manual trigger
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false # queue instead of cancel
jobs:
fetch-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout current repo
uses: actions/checkout@v4
- name: Install Python (venv)
run: bash ./cli-common-setup-python.sh
- name: Override .env values
run: |
echo "OTD_KEY=${{ secrets.OTD_KEY }}" >> $GITHUB_ENV
- name: Fetch SLNID
run: |
bash ./cli-common-fetch-dataset.sh slnid-line-actual-date actual-date-line
- name: Prepare site
run: |
bash ./cli-common-create-site.sh slnid-line-actual-date
- uses: actions/upload-pages-artifact@v3
with:
path: site
- id: deployment
uses: actions/deploy-pages@v4