introduce GitHub actions for automated plugin/asset deployment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7baff2f5ff
commit
b245b79bc2
18
.distignore
Normal file
18
.distignore
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/.git
|
||||||
|
/.github
|
||||||
|
/assets
|
||||||
|
/node_modules
|
||||||
|
/vendor
|
||||||
|
/.distignore
|
||||||
|
/.drone.yml
|
||||||
|
/.gitattributes
|
||||||
|
/.gitignore
|
||||||
|
/.travis.yml
|
||||||
|
/composer.json
|
||||||
|
/composer.lock
|
||||||
|
/CONTRIBUTING.md
|
||||||
|
/package.json
|
||||||
|
/package-lock.json
|
||||||
|
/phpcs.xml
|
||||||
|
/phpunit.xml
|
||||||
|
/RoboFile.php
|
21
.github/workflows/wordpress-plugin-asset-update.yml
vendored
Normal file
21
.github/workflows/wordpress-plugin-asset-update.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: Plugin asset/readme update
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
master:
|
||||||
|
name: Push to master
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: php-actions/composer@v5
|
||||||
|
- name: Clean README.md
|
||||||
|
run: tail -n +7 README.md > README.md.tmp && mv README.md.tmp README.md
|
||||||
|
- name: WordPress.org plugin asset/readme update
|
||||||
|
uses: 10up/action-wordpress-plugin-asset-update@stable
|
||||||
|
env:
|
||||||
|
ASSETS_DIR: assets
|
||||||
|
README_NAME: README.md
|
||||||
|
SVN_PASSWORD: ${{ secrets.WP_SVN_PASSWORD }}
|
||||||
|
SVN_USERNAME: ${{ secrets.WP_SVN_USERNAME }}
|
21
.github/workflows/wordpress-plugin-deploy.yml
vendored
Normal file
21
.github/workflows/wordpress-plugin-deploy.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: Deploy to WordPress.org
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
- "!v*-*"
|
||||||
|
jobs:
|
||||||
|
tag:
|
||||||
|
name: New tag
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: php-actions/composer@v5
|
||||||
|
- name: Clean README.md
|
||||||
|
run: tail -n +7 README.md > README.md.tmp && mv README.md.tmp README.md
|
||||||
|
- name: WordPress Plugin Deploy
|
||||||
|
uses: 10up/action-wordpress-plugin-deploy@stable
|
||||||
|
env:
|
||||||
|
ASSETS_DIR: assets
|
||||||
|
SVN_PASSWORD: ${{ secrets.WP_SVN_PASSWORD }}
|
||||||
|
SVN_USERNAME: ${{ secrets.WP_SVN_USERNAME }}
|
Loading…
x
Reference in New Issue
Block a user