File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Beta Release
2+ on :
3+ push :
4+ branches :
5+ - master
6+
7+ jobs :
8+ pre-release :
9+ name : " Beta Release"
10+ runs-on : " ubuntu-latest"
11+ steps :
12+ - uses : actions/checkout@v2
13+ - name : Run tests
14+ run : ./gradlew clean test --info
15+ - name : Set github tag
16+ id : github
17+ run : echo ::set-output name=tag::${GITHUB_REF#refs/*/}
18+ - name : Set short git hash
19+ id : git
20+ run : echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
21+ - name : Build artifacts
22+ run : ./gradlew -Penv=production -Prelease=${{ steps.github.outputs.tag }} -Phash=${{ steps.git.outputs.sha_short }} clean assemble
23+ - name : Release
24+ uses : " marvinpinto/action-automatic-releases@latest"
25+ with :
26+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
27+ automatic_release_tag : " latest"
28+ prerelease : true
29+ title : " Development Build"
30+ files : |
31+ build/distributions/sdkman-cli-*.zip
Original file line number Diff line number Diff line change 33 push :
44 tags :
55 - ' *'
6- branches :
7- - master
86jobs :
97 build :
108 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments