From 082167fd841b0d058f3c44b1d309671009a0b9ff Mon Sep 17 00:00:00 2001 From: Rob Fletcher Date: Wed, 13 Mar 2019 10:10:42 -0700 Subject: [PATCH] Fix release goal in workflow --- .github/main.workflow | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index 0da4e104..a5ce022d 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -6,7 +6,7 @@ workflow "Build workflow" { workflow "Release workflow" { on = "release" resolves = [ - "site", + "publish", "tweet", ] } @@ -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"] } @@ -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"] } @@ -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"] }