introduce GitHub actions for automated plugin/asset deployment
This commit is contained in:
parent
a5e4225261
commit
91b612425b
16
.distignore
Normal file
16
.distignore
Normal file
@ -0,0 +1,16 @@
|
||||
/.git
|
||||
/.github
|
||||
/assets
|
||||
/test
|
||||
/.distignore
|
||||
/.gitattributes
|
||||
/.gitignore
|
||||
/.travis.yml
|
||||
/composer.json
|
||||
/composer.lock
|
||||
/CONTRIBUTING.md
|
||||
/package.json
|
||||
/package-lock.json
|
||||
/phpcs.xml
|
||||
/phpunit.xml
|
||||
/RoboFile.php
|
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1,5 +1,7 @@
|
||||
/.github export-ignore
|
||||
/assets export-ignore
|
||||
/test export-ignore
|
||||
.distignore export-ignore
|
||||
.gitattributes export-ignore
|
||||
.gitignore export-ignore
|
||||
.travis.yml export-ignore
|
||||
|
20
.github/workflows/wordpress-plugin-asset-update.yml
vendored
Normal file
20
.github/workflows/wordpress-plugin-asset-update.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
name: Plugin asset/readme update
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
master:
|
||||
name: Push to master
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Clean README.md
|
||||
run: tail -n +6 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 }}
|
20
.github/workflows/wordpress-plugin-deploy.yml
vendored
Normal file
20
.github/workflows/wordpress-plugin-deploy.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
name: Deploy to WordPress.org
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
- "!v*-*"
|
||||
jobs:
|
||||
tag:
|
||||
name: New tag
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Clean README.md
|
||||
run: tail -n +6 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