From c6c3075c5c81de3fccdbee869b5f51ae93e448dc Mon Sep 17 00:00:00 2001 From: Erwin Nindl Date: Wed, 28 May 2025 07:00:56 +0200 Subject: [PATCH] Adds github actions for building ZIP --- .distignore | 4 ++++ .gitattributes | 5 +++++ .github/workflows/main.yml | 16 ++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 .distignore create mode 100644 .gitattributes create mode 100644 .github/workflows/main.yml diff --git a/.distignore b/.distignore new file mode 100644 index 0000000..b783dfe --- /dev/null +++ b/.distignore @@ -0,0 +1,4 @@ +/.git +/.github +.distignore +.gitignore diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..110446f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +/.wordpress-org export-ignore +/.github export-ignore + +/.gitattributes export-ignore +/.gitignore export-ignore diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8e4ed27 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,16 @@ +name: Build release zip + +on: + workflow_dispatch + +jobs: + build: + name: Build release zip + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Generate zip + uses: 10up/action-wordpress-plugin-build-zip@stable + with: + retention-days: 1 # Optional; defaults to 5