Skip to content

Commit

Permalink
Fix release goal in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
robfletcher authored Mar 13, 2019
1 parent a9aa2fc commit 082167f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ workflow "Build workflow" {
workflow "Release workflow" {
on = "release"
resolves = [
"site",
"publish",
"tweet",
]
}
Expand All @@ -27,14 +27,13 @@ action "release" {
args = "build final -Prelease.useLastTag=true"
secrets = [
"BINTRAY_USER",
"BINTRAY_KEY"
"BINTRAY_KEY",
]
}

action "site" {
uses = "MrRamych/gradle-actions@master"
args = ":site:orchidBuild -Penv=prod -Prelease.useLastTag=true"
secrets = ["GITHUB_TOKEN"]
needs = ["release"]
}

Expand All @@ -52,7 +51,7 @@ action "message" {
args = [
"apt-get update",
"apt-get install --no-install-recommends -y jq",
"RELEASE_TAG=`jq .release.tag_name $GITHUB_EVENT_PATH --raw-output` RELEASE_NAME=`jq .release.name $GITHUB_EVENT_PATH --raw-output` bash -c 'echo \"Strikt $RELEASE_TAG $RELEASE_NAME is available. https://strikt.io\n\nRelease notes: https://github.com/$GITHUB_REPOSITORY/releases/$RELEASE_TAG\" > tweet.txt'"
"RELEASE_TAG=`jq .release.tag_name $GITHUB_EVENT_PATH --raw-output` RELEASE_NAME=`jq .release.name $GITHUB_EVENT_PATH --raw-output` bash -c 'echo \"Strikt $RELEASE_TAG $RELEASE_NAME is available. https://strikt.io\n\nRelease notes: https://github.com/$GITHUB_REPOSITORY/releases/$RELEASE_TAG\" > tweet.txt'",
]
needs = ["release"]
}
Expand All @@ -61,13 +60,13 @@ action "tweet" {
uses = "./.github/actions/twitter-action"
args = [
"-file",
"./tweet.txt"
"./tweet.txt",
]
secrets = [
"TWITTER_CONSUMER_KEY",
"TWITTER_CONSUMER_SECRET",
"TWITTER_ACCESS_TOKEN",
"TWITTER_ACCESS_SECRET"
"TWITTER_ACCESS_SECRET",
]
needs = ["message"]
}

0 comments on commit 082167f

Please sign in to comment.