Skip to content

Commit

Permalink
Fix passing VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
shiraji committed Apr 6, 2020
1 parent 8e30264 commit c98d930
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ jobs:
run: echo ::set-output name=version::${github_ref/refs\/tags\//}
- name: Release
env:
TAG_NAME: ${{ github.ref }}
HUB_TOKEN: ${{ secrets.HUB_TOKEN }}
run: ./gradlew buildPlugin publishPlugin -DVERSION=${CIRCLE_TAG#beta-} -DCHANNELS=beta
run: ./gradlew buildPlugin publishPlugin -DVERSION=${TAG_NAME#refs/tags/beta-} -DCHANNELS=beta

release:
needs: build-and-test
Expand All @@ -69,5 +70,6 @@ jobs:
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Release
env:
TAG_NAME: ${{ github.ref }}
HUB_TOKEN: ${{ secrets.HUB_TOKEN }}
run: ./gradlew buildPlugin publishPlugin -DVERSION=${CIRCLE_TAG#release-} -DCHANNELS=default
run: ./gradlew buildPlugin publishPlugin -DVERSION=${TAG_NAME#refs/tags/release-} -DCHANNELS=default

0 comments on commit c98d930

Please sign in to comment.