Skip to content

Commit

Permalink
Add workflow file for deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
helen committed May 21, 2019
1 parent 95e67e5 commit f736bae
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
workflow "Deploy" {
resolves = ["WordPress Plugin Deploy"]
on = "push"
}

# Filter for tag
action "tag" {
uses = "actions/bin/filter@master"
args = "tag"
}

action "WordPress Plugin Deploy" {
needs = ["tag"]
uses = "10up/actions-wordpress/dotorg-plugin-deploy@master"
secrets = ["SVN_PASSWORD", "SVN_USERNAME", "GITHUB_TOKEN"]
}

workflow "Asset/readme update" {
resolves = ["Plugin Asset Update"]
on = "push"
}

action "Filters for GitHub Actions" {
uses = "actions/bin/filter@master"
args = "branch master"
}

action "Plugin Asset Update" {
uses = "10up/actions-wordpress/dotorg-plugin-asset-update@master"
needs = ["Filters for GitHub Actions"]
secrets = ["SVN_USERNAME", "SVN_PASSWORD"]
}

0 comments on commit f736bae

Please sign in to comment.