From 0a9f3e4ce3e40bf87ba673ed74c39e13c70361e9 Mon Sep 17 00:00:00 2001 From: Piotr Niewiadomski Date: Tue, 30 Jul 2024 18:28:07 +0200 Subject: [PATCH] =?UTF-8?q?Rollback=20artifact=20creation=20to=20enable=20?= =?UTF-8?q?downloading=20a=20pre-built=20package=20=E2=80=A6=20(#1624)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rollback artifact creation to enable downloading a pre-built package and hosting an own playground instance, as the most convenient and easiest way to do so, according to the documentation: https://wordpress.github.io/wordpress-playground/architecture/host-your-own-playground/ --- .github/workflows/build-website.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-website.yml b/.github/workflows/build-website.yml index 62aea15f10..e3303c5f08 100644 --- a/.github/workflows/build-website.yml +++ b/.github/workflows/build-website.yml @@ -32,6 +32,14 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/actions/prepare-playground - run: npm run build + - run: tar -czf wasm-wordpress-net.tar.gz dist/packages/playground/wasm-wordpress-net + # Store dist/packages/artifacts/wasm-wordpress-net as a build artifact + - uses: actions/upload-artifact@v2 + with: + name: playground-website + path: wasm-wordpress-net.tar.gz + # The artifact only becomes available after this workflow wraps up, so let's wrap. + # This artifact enables the download of a pre-built package and hosting of one's own playground instance. - name: Deploy to playground.wordpress.net shell: bash