Skip to content

Commit

Permalink
Merge pull request #965 from push-protocol/964-fix-gh-pages-and-clear…
Browse files Browse the repository at this point in the history
…-cache

Fix GH-pages
  • Loading branch information
rohitmalhotra1420 authored Jan 8, 2025
2 parents 00fafdc + 2ababa7 commit 9f84822
Show file tree
Hide file tree
Showing 2 changed files with 231 additions and 396 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ jobs:
echo "GITHUB_PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
echo "REACT_APP_BASE_URL=/push-website/pr-preview/pr-${{ github.event.pull_request.number }}" >> $GITHUB_ENV
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true

- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -31,6 +42,9 @@ jobs:
node-version: 18.x
cache: yarn

- name: Clean yarn cache
run: yarn cache clean --force

- name: Install and Build
if: github.event.action != 'closed' # You might want to skip the build if the PR has been closed
run: |
Expand All @@ -44,7 +58,8 @@ jobs:
umbrella-dir: pr-preview

- uses: rossjrw/[email protected]
if: github.event.action == 'closed' && !github.event.pull_request.merged
if: github.event.action == 'closed' || github.event.pull_request.merged
with:
umbrella-dir: pr-preview
source-dir: ./build/
action: remove
Loading

0 comments on commit 9f84822

Please sign in to comment.