Skip to content

Commit

Permalink
Create wordpress-org-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpaul authored Jan 25, 2024
1 parent bf6ac75 commit 61b47a5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/wordpress-org-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to WordPress.org Repository

on:
release:
types: [published]

jobs:
deploy_to_wp_repository:
name: Deploy to WP.org
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
run: |
npm install
npm run build
- name: WordPress.org Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
- name: Upload release asset
uses: softprops/action-gh-release@v1
with:
files: ${{ github.workspace }}/${{ github.event.repository.name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 61b47a5

Please sign in to comment.