File tree Expand file tree Collapse file tree 1 file changed +23
-15
lines changed
Expand file tree Collapse file tree 1 file changed +23
-15
lines changed Original file line number Diff line number Diff line change 11name : Deploy to WordPress.org
22on :
3- push :
4- tags :
5- - " *"
3+ release :
4+ types : [published]
65jobs :
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
You can’t perform that action at this time.
0 commit comments