Skip to content

Commit de8e94e

Browse files
authored
Merge pull request #512 from jeffpaul/patch-1
Create `wordpress-org-deploy.yml`
2 parents bf6ac75 + 61b47a5 commit de8e94e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy to WordPress.org Repository
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy_to_wp_repository:
9+
name: Deploy to WP.org
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
- name: Build
15+
run: |
16+
npm install
17+
npm run build
18+
- name: WordPress.org Plugin Deploy
19+
id: deploy
20+
uses: 10up/action-wordpress-plugin-deploy@stable
21+
with:
22+
generate-zip: true
23+
env:
24+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
25+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
26+
- name: Upload release asset
27+
uses: softprops/action-gh-release@v1
28+
with:
29+
files: ${{ github.workspace }}/${{ github.event.repository.name }}.zip
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)