Skip to content

Instantly share code, notes, and snippets.

@HelloAlberuni
Created July 22, 2023 02:19
Show Gist options
  • Save HelloAlberuni/21b520fbbcf6f3786135012347f028c4 to your computer and use it in GitHub Desktop.
Save HelloAlberuni/21b520fbbcf6f3786135012347f028c4 to your computer and use it in GitHub Desktop.
General plugin deploy file
name: Deploy to WordPress.org
on:
# We only want this action to run when publishing a new release.
release:
# run only when a new release is published not when pre released.
types: [created]
# List of the jobs in this workflow.
jobs:
# A unique job ID.
deploy_to_wp_repository:
name: Deploy to WP.org
runs-on: ubuntu-latest
# Each job has a set of steps.
steps:
- uses: actions/checkout@v3
# We are deploying our plugin using 10up's github action.
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
# Set the SVN_USERNAME & SVN_PASSWORD from Github repository secrets.
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment