From 8d6d38e66beae215bd6da96d00e4e575c1a91082 Mon Sep 17 00:00:00 2001 From: Marco Vermeulen Date: Sun, 20 Jun 2021 19:20:30 +0100 Subject: [PATCH] Introduce beta release. --- .github/workflows/beta.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/release.yml | 2 -- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/beta.yml diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml new file mode 100644 index 00000000..e617361c --- /dev/null +++ b/.github/workflows/beta.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2966309b..9d3ad3ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,6 @@ on: push: tags: - '*' - branches: - - master jobs: build: runs-on: ubuntu-latest