Skip to content

Commit 5cf1354

Browse files
committed
Adding workflow
1 parent 0eb436c commit 5cf1354

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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: Build
13+
run: |
14+
npm install
15+
npm run build
16+
- name: WordPress Plugin Deploy
17+
id: deploy
18+
uses: 10up/action-wordpress-plugin-deploy@stable
19+
with:
20+
generate-zip: true
21+
env:
22+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
23+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
24+
- name: Upload release asset
25+
uses: actions/upload-release-asset@v1
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with:
29+
upload_url: ${{ github.event.release.upload_url }}
30+
asset_path: ${{github.workspace}}/${{ github.event.repository.name }}.zip
31+
asset_name: ${{ github.event.repository.name }}.zip
32+
asset_content_type: application/zip

0 commit comments

Comments
 (0)