Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Add files for GH Actions deployment to WordPress.org #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/.wordpress-org
/.git
/.github
/config
/node_modules
/tests

.DS_Store
.babelrc
.browserslistrc
.distignore
.editorconfig
.eslintignore
.eslintrc
.gitignore
.stylelintrc
composer.json
composer.lock
package.json
package-lock.json
phpcs.xml
phpunit.xml
postcss.config.js
README.md
webpack.config.js
20 changes: 20 additions & 0 deletions .github/workflows/dotorg-asset-readme-update.yml
Original file line number Diff line number Diff line change
@@ -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@master
- name: Build
run: |
npm install
npm run build
- name: WordPress.org plugin asset/readme update
uses: 10up/action-wordpress-plugin-asset-update@master
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
20 changes: 20 additions & 0 deletions .github/workflows/dotorg-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build
run: |
npm install
npm run build
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@master
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
14 changes: 14 additions & 0 deletions .wordpress-org/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# WordPress.org-specific assets

This directory should contain the files that go into the top-level `assets` folder in Subversion, the one that is on the same level as `trunk`. For full documentation, please see the [Plugin Handbook](https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/). Files you may want to add here are:

* `banner-772x250.(jpg|png)`
* `banner-772x250-rtl.(jpg|png)`
* `banner-1544x500.(jpg|png)`
* `banner-1544x500-rtl.(jpg|png)`
* `icon-128x128.(png|jpg)`
* `icon-256x256.(png|jpg)`
* `icon.svg`
* `screenshot-1.(png|jpg)`
* `screenshot-2.(png|jpg)`
* etc.