Skip to content

Commit

Permalink
Add WordPress.org deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevalk committed Dec 9, 2022
1 parent 20f42c1 commit 54faa20
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 35 deletions.
33 changes: 0 additions & 33 deletions .codeclimate.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/.wordpress-org
/.git
/.github
/.cache
/node_modules
/tests
/grunt

.phpcs.xml.dist
.distignore
.gitignore
.removeable-files
Gruntfile.js
package.json
phpmd.xml
phpunit.xml.dist
yarn.lock
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production
# https://blog.madewithlove.be/post/gitattributes/
#
.codeclimate.yml export-ignore
.eslintignore export-ignore
.eslintrc export-ignore
.gitattributes export-ignore
Expand All @@ -21,7 +20,7 @@ yarn.lock export-ignore
/.cache export-ignore
/.github export-ignore
/grunt export-ignore
/svn-assets export-ignore
/.wordpress-org export-ignore
/tests export-ignore

#
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Deploy to WordPress.org and create release on GitHub"

on:
push:
tags:
- "v*"

jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: yoast-comment-hacks # optional, remove if GitHub repo name matches SVN slug, including capitalization
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
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
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 54faa20

Please sign in to comment.