Skip to content

Commit 1ead558

Browse files
authored
Merge pull request #194 from rtCamp/feature/wp-org-gh-action
Add option to deploy plugin to WP.org using GitHub Actions
2 parents 9cd2c2a + fb9b195 commit 1ead558

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/main.workflow

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
workflow "Deploy" {
2+
resolves = ["WordPress Plugin Deploy"]
3+
on = "push"
4+
}
5+
6+
# Filter for tag
7+
action "tag" {
8+
uses = "actions/bin/filter@master"
9+
args = "tag"
10+
}
11+
12+
action "WordPress Plugin Deploy" {
13+
needs = ["tag"]
14+
uses = "rtCamp/action-wp-org-plugin-deploy@master"
15+
secrets = ["WORDPRESS_USERNAME", "WORDPRESS_PASSWORD"]
16+
env = {
17+
SLUG = "nginx-helper"
18+
EXCLUDE_LIST = ".gitattributes .gitignore .travis.yml README.md deploy.sh readme.sh tests map.conf nginx.log wercker.yml"
19+
}
20+
}

0 commit comments

Comments
 (0)