Skip to content

Commit

Permalink
Add GitHub Actions for WPorg deploy and asset update (#87)
Browse files Browse the repository at this point in the history
* Add GitHub Actions for WordPress.org Plugin Readme/Assets Update

* Moved off WPorg asset files to wordpress.org folder

* Add GitHub Actions to release to WP.org
  • Loading branch information
htdat authored Oct 2, 2021
1 parent 37c7d71 commit c89c140
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Directories
/.wordpress-org
/.git
/.github
/node_modules

# Files
.distignore
.gitignore
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Directories
/.wordpress-org export-ignore
/.github export-ignore

# Files
/.gitattributes export-ignore
/.gitignore export-ignore
22 changes: 22 additions & 0 deletions .github/workflows/deploy-to-wporg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This workflow automatically updates the plugin on WordPress.org
# when a tag is pushed to this repo.
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# - name: Build # Remove or modify this step as needed
# run: |
# npm install
# npm run build
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
16 changes: 16 additions & 0 deletions .github/workflows/update-wpdororg-assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Plugin asset/readme update
on:
push:
branches:
- master
jobs:
trunk:
name: Push to trunk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: WordPress.org plugin asset/readme update
uses: 10up/action-wordpress-plugin-asset-update@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit c89c140

Please sign in to comment.