Skip to content

Commit 8d6d38e

Browse files
committed
Introduce beta release.
1 parent 135e7f7 commit 8d6d38e

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.github/workflows/beta.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
push:
44
tags:
55
- '*'
6-
branches:
7-
- master
86
jobs:
97
build:
108
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)