From 7ec105dec67e1f5b25404ae9eb6cd4fbc1d93a23 Mon Sep 17 00:00:00 2001 From: mustafauysal Date: Thu, 2 Sep 2021 02:48:39 +0300 Subject: [PATCH] Add actions --- .github/workflows/plugin-deploy.yml | 17 +++++++++++++++++ .github/workflows/plugin-update.yml | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/plugin-deploy.yml create mode 100644 .github/workflows/plugin-update.yml diff --git a/.github/workflows/plugin-deploy.yml b/.github/workflows/plugin-deploy.yml new file mode 100644 index 0000000..8aad7df --- /dev/null +++ b/.github/workflows/plugin-deploy.yml @@ -0,0 +1,17 @@ +name: Deploy to WordPress.org +on: + push: + tags: + - "*" +jobs: + tag: + name: New tag + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: WordPress Plugin Deploy + uses: 10up/action-wordpress-plugin-deploy@stable + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SLUG: wonder-cache \ No newline at end of file diff --git a/.github/workflows/plugin-update.yml b/.github/workflows/plugin-update.yml new file mode 100644 index 0000000..f602725 --- /dev/null +++ b/.github/workflows/plugin-update.yml @@ -0,0 +1,17 @@ +name: Plugin asset/readme update +on: + push: + branches: + - master +jobs: + master: + name: Push to master + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: WordPress.org plugin asset/readme update + uses: 10up/action-wordpress-plugin-asset-update@stable + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SLUG: wonder-cache