From 63a7273cf3caca1999e16fec87bf5cf5036198d3 Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Thu, 30 Jan 2025 10:53:27 -0800 Subject: [PATCH] chore(ci): create a workflow file for uploading the plugin package as artifact --- .github/workflows/generate-wp-plugin-zip.yml | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/generate-wp-plugin-zip.yml diff --git a/.github/workflows/generate-wp-plugin-zip.yml b/.github/workflows/generate-wp-plugin-zip.yml new file mode 100644 index 0000000..e7f8e50 --- /dev/null +++ b/.github/workflows/generate-wp-plugin-zip.yml @@ -0,0 +1,23 @@ +name: Generate WordPress Plugin Package + +on: + pull_request: + types: [opened, synchronize] + +jobs: + build-and-upload: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Package WordPress Plugin + run: | + ./bin/build.sh + + - name: Upload Package As Artifact + uses: actions/upload-artifact@v4 + with: + name: screenly-cast-plugin + path: artifact/screenly-cast.zip + retention-days: 5