Skip to content

Rename pull_request_tempalte.md to pull_request_template.md #96

Rename pull_request_tempalte.md to pull_request_template.md

Rename pull_request_tempalte.md to pull_request_template.md #96

Workflow file for this run

name: Beta Release
on:
push:
branches:
- master
paths-ignore:
- .github/workflows/*
jobs:
pre-release:
name: "Beta Release"
environment: production
runs-on: "ubuntu-latest"
services:
mongodb:
image: mongo:3.2
ports:
- 27017:27017
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
- name: Run tests
run: ./gradlew clean test --info
- name: Set short git hash
id: var
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Build artifacts
run: ./gradlew -Penv=beta -Phash=${{ steps.var.outputs.sha_short }} clean assemble
- name: Release
if: github.repository == 'sdkman/sdkman-cli'
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Beta release"
files: |
build/distributions/sdkman-cli-*.zip
- name: Update MongoDB
if: github.repository == 'sdkman/sdkman-cli'
env:
MONGO_URL: ${{ secrets.MONGO_URL }}
MONGO_USERNAME: ${{ secrets.MONGO_USERNAME }}
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
SHORT_HASH: ${{ steps.var.outputs.sha_short }}
run: bin/release-binary.sh "$MONGO_URL" "$MONGO_USERNAME" "$MONGO_PASSWORD" "$SHORT_HASH" "latest"