From 6310bacf82253810b0c087c5a7abe3131b83c9bc Mon Sep 17 00:00:00 2001 From: Daniel Regeci <536331+ovx@users.noreply.github.com> Date: Mon, 15 Jul 2024 14:04:41 -0300 Subject: [PATCH] directory publish action --- .distignore | 7 ++++++ .github/workflows/publish.yml | 20 ++++++++++++++++++ .../banner-1544x500.png | Bin {assets => .wordpress-org}/banner-772x250.png | Bin {assets => .wordpress-org}/icon-128x128.png | Bin {assets => .wordpress-org}/icon-256x256.png | Bin {assets => .wordpress-org}/screenshot-1.png | Bin 7 files changed, 27 insertions(+) create mode 100644 .distignore create mode 100644 .github/workflows/publish.yml rename {assets => .wordpress-org}/banner-1544x500.png (100%) rename {assets => .wordpress-org}/banner-772x250.png (100%) rename {assets => .wordpress-org}/icon-128x128.png (100%) rename {assets => .wordpress-org}/icon-256x256.png (100%) rename {assets => .wordpress-org}/screenshot-1.png (100%) diff --git a/.distignore b/.distignore new file mode 100644 index 0000000..ae1cfac --- /dev/null +++ b/.distignore @@ -0,0 +1,7 @@ +/.wordpress-org +/.git +/.github +/node_modules +.distignore +.gitignore +README.md \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..17c73dd --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,20 @@ +name: ci +on: + push: + tags: + - "*" +jobs: + deploy: + name: Publish + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: WordPress Plugin Publish + uses: 10up/action-wordpress-plugin-deploy@stable + with: + generate-zip: true + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SOURCE_DIR: ./ + SLUG: altcha-spam-protection diff --git a/assets/banner-1544x500.png b/.wordpress-org/banner-1544x500.png similarity index 100% rename from assets/banner-1544x500.png rename to .wordpress-org/banner-1544x500.png diff --git a/assets/banner-772x250.png b/.wordpress-org/banner-772x250.png similarity index 100% rename from assets/banner-772x250.png rename to .wordpress-org/banner-772x250.png diff --git a/assets/icon-128x128.png b/.wordpress-org/icon-128x128.png similarity index 100% rename from assets/icon-128x128.png rename to .wordpress-org/icon-128x128.png diff --git a/assets/icon-256x256.png b/.wordpress-org/icon-256x256.png similarity index 100% rename from assets/icon-256x256.png rename to .wordpress-org/icon-256x256.png diff --git a/assets/screenshot-1.png b/.wordpress-org/screenshot-1.png similarity index 100% rename from assets/screenshot-1.png rename to .wordpress-org/screenshot-1.png