Skip to content

Commit

Permalink
fixup! Split GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiSG committed May 20, 2024
1 parent 27330be commit 2ddd413
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,11 @@ jobs:
- name: Check syntax
run: make test-build

- name: Cache built files
uses: actions/cache@v4
with:
path: build/html
key: build-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ github.sha }}

- name: Build doc
run: make html
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
with:
python-version: 3.11

- name: Restore built files
uses: actions/cache@v4
with:
path: build/html
key: build-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ github.sha }}
fail-on-cache-miss: true # depend entirely on the build step

- name: Deploy built directory to openfisca.org website
uses: peaceiris/actions-gh-pages@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:
with:
python-version: 3.11

- name: Cache dependencies
- name: Restore built files
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
path: build/html
key: build-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ github.sha }}
fail-on-cache-miss: true # depend on the build step
fail-on-cache-miss: true # depend entirely on the build step

- name: Serve doc
run: make prod &
Expand Down

0 comments on commit 2ddd413

Please sign in to comment.