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

Store WordPress "build" directory as an artifact to enable live previews with Playground #5481

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 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
8 changes: 8 additions & 0 deletions .github/workflows/end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ jobs:
path: artifacts
if-no-files-found: ignore

- name: Upload the build directory as GitHub artifact
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: always()
with:
name: wordpress-build
adamziel marked this conversation as resolved.
Show resolved Hide resolved
path: build
if-no-files-found: ignore
adamziel marked this conversation as resolved.
Show resolved Hide resolved

adamziel marked this conversation as resolved.
Show resolved Hide resolved
- name: Ensure version-controlled files are not modified or deleted
run: git diff --exit-code

Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ jobs:
- name: Build WordPress in /src
run: npm run build:dev

- name: Upload the build directory as GitHub artifact
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: always()
with:
name: wordpress-build-dev
path: build
if-no-files-found: ignore

- name: Clean after building in /src
run: npm run grunt clean -- --dev

Expand All @@ -98,6 +106,14 @@ jobs:
- name: Build WordPress
run: npm run build

- name: Upload the build directory as GitHub artifact
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: always()
with:
name: wordpress-build-dev
path: build
if-no-files-found: ignore

- name: Clean after building
run: npm run grunt clean

Expand Down
Loading