Skip to content

Commit 4d9a523

Browse files
committed
Simplify beta release action.
1 parent c330e19 commit 4d9a523

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/beta.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,17 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- name: Run tests
1414
run: ./gradlew clean test --info
15-
- name: Set github tag
16-
id: github
17-
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
1815
- name: Set short git hash
19-
id: git
16+
id: var
2017
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
2118
- name: Build artifacts
22-
run: ./gradlew -Penv=production -Prelease=${{ steps.github.outputs.tag }} -Phash=${{ steps.git.outputs.sha_short }} clean assemble
19+
run: ./gradlew -Penv=production -Phash=${{ steps.var.outputs.sha_short }} clean assemble
2320
- name: Release
2421
uses: "marvinpinto/action-automatic-releases@latest"
2522
with:
2623
repo_token: "${{ secrets.GITHUB_TOKEN }}"
2724
automatic_release_tag: "latest"
2825
prerelease: true
29-
title: "Development Build"
26+
title: "Beta release"
3027
files: |
3128
build/distributions/sdkman-cli-*.zip

0 commit comments

Comments
 (0)