Skip to content

Commit

Permalink
fix: always cache translations & docusaurus cache (#1661)
Browse files Browse the repository at this point in the history
Co-authored-by: gagdiez <[email protected]>
  • Loading branch information
matiasbenary and gagdiez authored Jan 11, 2024
1 parent b9fc109 commit c557708
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
- uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/website/.docusaurus
${{ github.workspace }}/**/.cache
key: |
${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
- uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/website/.docusaurus
${{ github.workspace }}/**/.cache
key: |
${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }}
Expand Down Expand Up @@ -51,7 +50,7 @@ jobs:
- name: Commit build
run: |
git add -f ./website/build
git add -f ./website/build ./website/.docusaurus ./website/i18n
git commit -m "Merge with master"
git push
env:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/website/.docusaurus
${{ github.workspace }}/**/.cache
key: |
${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/translation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/website/.docusaurus
${{ github.workspace }}/**/.cache
key: |
${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }}
Expand All @@ -46,7 +45,7 @@ jobs:
- name: Commit build
run: |
git add -f ./website/build
git add -f ./website/build ./website/.docusaurus ./website/i18n
if git commit -m "add new build";then
git push
else
Expand Down
2 changes: 1 addition & 1 deletion website/test-links.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ find_available_port() {
start_server() {
echo " 🏗️ - Building docs site... "
export IS_PULL_REQUEST=true
npm run build
npm run build:preview
echo " ✅ - Docs site built. "

local port=$(find_available_port)
Expand Down

0 comments on commit c557708

Please sign in to comment.