From 802b9035243bc9d2ac6819dd213a01f06140aa39 Mon Sep 17 00:00:00 2001 From: Remco Tolsma Date: Tue, 17 Dec 2024 15:11:44 +0100 Subject: [PATCH] Create deploy-to-wp-pronamic-directory.yml --- .../deploy-to-wp-pronamic-directory.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/deploy-to-wp-pronamic-directory.yml diff --git a/.github/workflows/deploy-to-wp-pronamic-directory.yml b/.github/workflows/deploy-to-wp-pronamic-directory.yml new file mode 100644 index 0000000..8e7477b --- /dev/null +++ b/.github/workflows/deploy-to-wp-pronamic-directory.yml @@ -0,0 +1,30 @@ +name: Deploy to Pronamic WordPress directory + +on: + workflow_dispatch: + inputs: + tag: + description: 'Release tag to deploy' + type: string + release: + types: [released] + +jobs: + deploy: + runs-on: ubuntu-latest + + environment: + name: Pronamic WordPress directory + url: https://wp.pronamic.directory/plugins/pronamic-pay-contact-form-7/ + + permissions: + id-token: 'write' + + steps: + - name: Deploy + uses: pronamic/action-wp-pronamic-directory-plugin-deploy@main + with: + username: ${{ vars.WP_PRONAMIC_DIRECTORY_USERNAME }} + password: ${{ secrets.WP_PRONAMIC_DIRECTORY_PASSWORD }} + slug: pronamic-pay-contact-form-7 + tag: ${{ inputs.tag || github.event.release.tag_name }}