Create deploy-to-wp-pronamic-directory.yml

This commit is contained in:
Remco Tolsma 2024-12-30 14:55:27 +01:00 committed by GitHub
parent cf89855d79
commit 8120ffb25f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
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/advanced-custom-fields-pro/
permissions:
contents: 'read'
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: advanced-custom-fields-pro
tag: ${{ inputs.tag || github.event.release.tag_name }}