Reorder workflow #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | ||
on: | ||
workflow_dispatch: # triggered by Core to rebuild the documentation when code comments change | ||
push: | ||
branches: [ cd ] # TESTING | ||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yaml | ||
test: | ||
uses: ./.github/workflows/test.yaml | ||
Check failure on line 13 in .github/workflows/deploy.yaml GitHub Actions / .github/workflows/deploy.yamlInvalid workflow file
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: [ test ] # also depends on build for caching build, not repeated to avoid building twice | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
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 | ||
with: | ||
deploy_key: ${{ secrets.OPENFISCADOTORG_DEPLOY_KEY }} | ||
publish_dir: build/html | ||
external_repository: openfisca/openfisca.org | ||
destination_dir: doc | ||
publish_branch: test-cd # TESTING |