From c19b474152f44a8a8128ef747daa01fbd437a3e2 Mon Sep 17 00:00:00 2001 From: mustafauysal Date: Fri, 17 May 2024 10:58:50 +0300 Subject: [PATCH] Add deploy 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..143c401 --- /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: easy-text-to-speech diff --git a/.github/workflows/plugin-update.yml b/.github/workflows/plugin-update.yml new file mode 100644 index 0000000..d765392 --- /dev/null +++ b/.github/workflows/plugin-update.yml @@ -0,0 +1,17 @@ +name: Plugin asset/readme update +on: + push: + branches: + - main +jobs: + master: + name: Push to main + 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: easy-text-to-speech