Skip to content

Commit 73732d3

Browse files
Merge pull request #87 from PaystackOSS/chore/sanitize-form-fieds
update WP deploy script
2 parents a401fb1 + 0cd6ba6 commit 73732d3

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

.github/workflows/deploy.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
name: Deploy to WordPress.org
22
on:
3-
push:
4-
tags:
5-
- "*"
3+
release:
4+
types: [published]
65
jobs:
76
tag:
8-
name: New tag
7+
name: New release
98
runs-on: ubuntu-latest
109
steps:
11-
- uses: actions/checkout@master
12-
- name: Build # Remove or modify this step as needed
13-
run: |
14-
npm install
15-
npm run build
16-
- name: WordPress Plugin Deploy
17-
uses: 10up/action-wordpress-plugin-deploy@stable
18-
env:
19-
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
20-
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
21-
SLUG: payment-forms-for-paystack
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: payment-forms-for-paystack
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)