Skip to content

Commit c86fc9d

Browse files
committed
Created WP push action
1 parent 4f686b8 commit c86fc9d

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.distignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/.wordpress-org
2+
/.git
3+
/.github
4+
5+
.distignore
6+
.gitignore
7+
8+
LICENSE

.github/workflows/main.yml

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

0 commit comments

Comments
 (0)