Skip to content

Commit 2644646

Browse files
New git action to automatically deploy patches to WP
1 parent 6cc93af commit 2644646

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/deply.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy to WordPress.org
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
tag:
7+
name: New release
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
- name: WordPress Plugin Deploy
13+
id: deploy
14+
uses: 10up/action-wordpress-plugin-deploy@stable
15+
with:
16+
generate-zip: true
17+
env:
18+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
19+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
20+
SLUG: paystack-add-on-for-gravity-forms
21+
- name: Upload release asset
22+
uses: actions/upload-release-asset@v1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
25+
with:
26+
upload_url: ${{ github.event.release.upload_url }}
27+
asset_path: ${{ steps.deploy.outputs.zip-path }}
28+
asset_name: ${{ github.event.repository.name }}.zip
29+
asset_content_type: application/zip

0 commit comments

Comments
 (0)