Skip to content

Commit c330e19

Browse files
committed
Simplify release action.
1 parent 8d6d38e commit c330e19

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ jobs:
1111
- name: Run tests
1212
run: ./gradlew clean test --info
1313
- name: Set github tag
14-
id: github
14+
id: var
1515
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
16-
- name: Set short git hash
17-
id: git
18-
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
1916
- name: Build artifacts
20-
run: ./gradlew -Penv=production -Prelease=${{ steps.github.outputs.tag }} -Phash=${{ steps.git.outputs.sha_short }} clean assemble
17+
run: ./gradlew -Penv=production -Prelease=${{ steps.var.outputs.tag }} clean assemble
2118
- uses: ncipollo/release-action@v1
2219
with:
2320
artifacts: "build/distributions/sdkman-cli-*.zip"

0 commit comments

Comments
 (0)