diff --git a/.github/workflows/manually-build-zip.yml b/.github/workflows/manually-build-zip.yml new file mode 100644 index 0000000..d5f3f12 --- /dev/null +++ b/.github/workflows/manually-build-zip.yml @@ -0,0 +1,19 @@ +name: Build release zip + +on: + workflow_dispatch + +jobs: + build: + name: Build release zip + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Build plugin # Remove or modify this step as needed + run: | + composer install --no-dev + + - name: Generate zip + uses: 10up/action-wordpress-plugin-build-zip@stable diff --git a/.github/workflows/on-push-build-zip.yml b/.github/workflows/on-push-build-zip.yml new file mode 100644 index 0000000..adcf69a --- /dev/null +++ b/.github/workflows/on-push-build-zip.yml @@ -0,0 +1,21 @@ +name: Build release zip + +on: + push: + branches: + - main + +jobs: + build: + name: Build release zip + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Build plugin # Remove or modify this step as needed + run: | + composer install --no-dev + + - name: Generate zip + uses: 10up/action-wordpress-plugin-build-zip@stable \ No newline at end of file