Skip to content

Commit

Permalink
build www from latest daily sha
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Feb 3, 2024
1 parent 295fe4d commit 4d6f00d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,17 @@ jobs:
- name: Decide whether to rebuild www
id: build_www
if: (github.event.schedule || inputs.build_www) && (steps.update_plots.outputs.sha || !inputs.short_circuit)
run: echo "run=1" >> $GITHUB_OUTPUT
run: |
echo "run=1" >> $GITHUB_OUTPUT
echo "sha=$(git log -1 --format=%h)" >> $GITHUB_OUTPUT
outputs:
update_pqts: ${{ steps.update_pqts.outputs.sha }}
build_www: ${{ steps.build_www.outputs.run }}
sha: ${{ steps.build_www.outputs.sha }}
rebuild_www:
name: Rebuild www
needs: refresh_data
if: needs.refresh_data.outputs.build_www
uses: ./.github/workflows/www.yml
with:
ref: ${{ needs.refresh_data.outputs.sha }}
12 changes: 12 additions & 0 deletions .github/workflows/www.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,25 @@ on:
branches:
- www
workflow_call:
inputs:
ref:
type: string
default: main
description: "The branch, tag, or SHA to run the workflow from"
workflow_dispatch:
inputs:
ref:
type: string
default: main
description: "The branch, tag, or SHA to run the workflow from"
jobs:
run:
name: Build + Deploy to GitHub Pages (iff www/ has changed since last gh-pages push)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}
- uses: pnpm/action-setup@v2
with:
version: 8
Expand Down

0 comments on commit 4d6f00d

Please sign in to comment.