Introduce beta release.

This commit is contained in:
Marco Vermeulen
2021-06-20 19:20:30 +01:00
committed by Marco Vermeulen
parent 135e7f79e5
commit 8d6d38e66b
2 changed files with 31 additions and 2 deletions

31
.github/workflows/beta.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Beta Release
on:
push:
branches:
- master
jobs:
pre-release:
name: "Beta Release"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: Run tests
run: ./gradlew clean test --info
- name: Set github tag
id: github
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Set short git hash
id: git
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Build artifacts
run: ./gradlew -Penv=production -Prelease=${{ steps.github.outputs.tag }} -Phash=${{ steps.git.outputs.sha_short }} clean assemble
- name: Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
build/distributions/sdkman-cli-*.zip

View File

@@ -3,8 +3,6 @@ on:
push:
tags:
- '*'
branches:
- master
jobs:
build:
runs-on: ubuntu-latest