diff --git a/.github/workflows/push-deploy.yml b/.github/workflows/push-deploy.yml index 5924bbab..a7e38e84 100644 --- a/.github/workflows/push-deploy.yml +++ b/.github/workflows/push-deploy.yml @@ -1,20 +1,25 @@ name: Deploy to WordPress.org on: + # Trigger on push with tags push: tags: - - 'v*' - - '!v*-alpha*' - - '!v*-beta*' - - '!v*-rc*' - - '!*-alpha*' - - '!*-beta*' - - '!*-rc*' + - "*" + + # Trigger manually from GitHub Actions UI + workflow_dispatch: + jobs: tag: name: New tag runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - name: Checkout code + uses: actions/checkout@master + + # Step to fix the "dubious ownership" issue + - name: Set safe directory for Git + run: git config --global --add safe.directory /github/workspace + - name: WordPress Plugin Deploy uses: 10up/action-wordpress-plugin-deploy@master env: