Skip to content

Commit

Permalink
fix(ci): update cache key to deploy staging/next doc (#3895)
Browse files Browse the repository at this point in the history
  • Loading branch information
kduret authored Dec 13, 2024
1 parent f6af52e commit 306f8b0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,10 @@ jobs:
- name: Restore build from cache
uses: actions/cache/restore@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: "./build"
key: "${{ github.sha }}-${{ github.run_id }}-build-doc-staging"
path: |
.docusaurus
build
key: docusaurus-build-staging-${{ github.head_ref || github.ref_name }}
fail-on-cache-miss: true

- name: Deploy to https://docs-staging.int.centreon.com
Expand Down Expand Up @@ -357,8 +359,10 @@ jobs:
- name: Restore build from cache
uses: actions/cache/restore@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: "./build"
key: "${{ github.sha }}-${{ github.run_id }}-build-doc-next"
path: |
.docusaurus
build
key: docusaurus-build-next-${{ github.head_ref || github.ref_name }}
fail-on-cache-miss: true

- name: Setup awscli
Expand Down

0 comments on commit 306f8b0

Please sign in to comment.