From f1bad19fe390f6047ea3edb6b5277d29456607cc Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Fri, 7 Jun 2024 08:25:20 +0100 Subject: [PATCH] Update deploy.yml Deploy on release (and manually), not on the adding of a tag. --- .github/workflows/deploy.yml | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7d46a5b1..bdc74949 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,20 +1,23 @@ name: Deploy to WordPress.org on: - push: - tags: - - "*" + release: + types: [released] + # Allow manual triggering of the workflow. + workflow_dispatch: jobs: - tag: - name: New tag + release: + name: New release to WordPress.org runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: Build # Remove or modify this step as needed - run: | - npm install - npm run build - - name: WordPress Plugin Deploy - uses: 10up/action-wordpress-plugin-deploy@stable - env: - SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} - SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + - name: Checkout + uses: actions/checkout@v4 + - name: Build # Remove or modify this step as needed + run: | + npm install + npm run build + - name: Push to WordPress.org + uses: 10up/action-wordpress-plugin-deploy@stable + env: + SLUG: liveblog + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }}