Create Stable Release #29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Create Stable Release | |
# Controls when the action will run. Workflow runs when manually triggered using the UI | |
# or API. | |
on: | |
workflow_dispatch: | |
# Inputs the workflow accepts. | |
inputs: | |
prerelease: | |
description: 'The release should be an experimental release' | |
default: 'NO' | |
required: true | |
jobs: | |
build_and_release: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_USER: "gocd" | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
PRERELEASE: "${{ github.event.inputs.prerelease }}" | |
steps: | |
- name: Harden the runner (Audit all outbound calls) | |
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Release | |
run: ./gradlew verifyExpRelease githubRelease |