File tree Expand file tree Collapse file tree 4 files changed +672
-53
lines changed Expand file tree Collapse file tree 4 files changed +672
-53
lines changed Original file line number Diff line number Diff line change
1
+ name : Linting
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - develop
7
+ - trunk
8
+ pull_request :
9
+ branches :
10
+ - develop
11
+
12
+ jobs :
13
+ eslint :
14
+ name : eslint
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - name : install node v12
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : 12
22
+ - name : npm install
23
+ run : npm install
24
+ - name : eslint
25
+ uses : icrawl/action-eslint@v1
26
+ with :
27
+ custom-glob : assets/js
28
+ env :
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
+ phpcs :
31
+ name : phpcs
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - name : Checkout
35
+ uses : actions/checkout@v2
36
+ - name : Set PHP version
37
+ uses : shivammathur/setup-php@v2
38
+ with :
39
+ php-version : ' 7.2'
40
+ coverage : none
41
+ tools : composer:v1
42
+ - name : composer install
43
+ run : composer install
44
+ - name : PHPCS check
45
+ uses : chekalsky/phpcs-action@v1
46
+ with :
47
+ phpcs_bin_path : ' ./vendor/bin/phpcs .'
Original file line number Diff line number Diff line change
1
+ name : Plugin asset/readme update
2
+ on :
3
+ push :
4
+ branches :
5
+ - trunk
6
+ jobs :
7
+ trunk :
8
+ name : Push to trunk
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@master
12
+ - name : WordPress.org plugin asset/readme update
13
+ uses : 10up/action-wordpress-plugin-asset-update@stable
14
+ env :
15
+ SVN_PASSWORD : ${{ secrets.SVN_PASSWORD }}
16
+ SVN_USERNAME : ${{ secrets.SVN_USERNAME }}
Original file line number Diff line number Diff line change
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@master
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
You can’t perform that action at this time.
0 commit comments