Skip to content

Create release

Create release #18

Workflow file for this run

# gradle-release-plugin.yml
# from https://wszlosek.github.io/DevDawn/2023/06/28/gradle-release-plugin.html
name: Create release
# Controls when the action will run
# Option bellow allows you to run the workflow manually
on:
workflow_dispatch:
inputs:
release_version:
description: 'Release new version'
# Allow GitHub Actions to push changes to the repository
permissions:
contents: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install -y x11vnc xvfb
- name: Setup java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
# Setup git config of the GitHub Actions Bot
- name: Setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
# Run release task
- name: Release with Gradle Release Plugin
env:
SIGNING_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
SIGNING_PASSWORD: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
RELEASE_VERSION: ${{ inputs.release_version }}
run: ./gradlew release