File tree Expand file tree Collapse file tree 2 files changed +39
-29
lines changed Expand file tree Collapse file tree 2 files changed +39
-29
lines changed Original file line number Diff line number Diff line change
1
+ /.wordpress-org
2
+ /.git
3
+ /.github
4
+ /node_modules
5
+ /src
6
+ /webpack
7
+ .distignore
8
+ .editorconfig
9
+ package-lock.json
10
+ package.json
11
+ postcss.config.js
12
+ webpack.config.js
13
+ readme.md
14
+ README.md
Original file line number Diff line number Diff line change 1
1
name : Deploy to WordPress.org
2
2
on :
3
- release :
4
- types : [published]
3
+ release :
4
+ types : [published]
5
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
6
+ tag :
7
+ name : New release
8
+ runs-on : ubuntu-latest
9
+ steps :
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
+ - name : Upload release asset
21
+ uses : actions/upload-release-asset@v1
22
+ env :
23
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
+ with :
25
+ upload_url : ${{ github.event.release.upload_url }}
26
+ asset_path : ${{github.workspace}}/${{ github.event.repository.name }}.zip
27
+ asset_name : ${{ github.event.repository.name }}.zip
28
+ asset_content_type : application/zip
You can’t perform that action at this time.
0 commit comments