Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PR preview deployments to web workflow #3395

Merged
merged 3 commits into from
Dec 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,22 @@ jobs:
run: npm run build
working-directory: web/features

- name: Stage website
- name: Stage website (production)
run: |
mkdir -p web/build/features
cp -r web/features/build/* web/build/features
if: github.event_name != 'pull_request'

- name: Stage website (preview)
run: |
mkdir -p web/build/preview/${{ github.event.pull_request.number }}/features
cp -r web/features/build/* web/build/preview/${{ github.event.pull_request.number }}/features
if: github.event_name == 'pull_request'

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: web/build
if: github.event_name != 'pull_request'

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
if: github.event_name != 'pull_request'
Loading