Skip to content

0.0.1

0.0.1 #4

Workflow file for this run

name: "Release"
on:
release:
types:
- "released"
jobs:
build:
name: "Release"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@master"
- uses: "graalvm/setup-graalvm@v1"
with:
java-version: "23"
distribution: "graalvm-community"
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: "gradle"
- uses: "actions/cache@master"
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/settings.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Publish
run: |
[[ "${{ github.event.release.tag_name }}" =~ ^[0-9]+(\.[0-9]+)*$ ]] || exit -1
chmod +x gradlew
./gradlew publishPlugins -Pversion="${{ github.event.release.tag_name }}" -Pgradle.publish.key="${{ secrets.GRADLE_PUBLISH_KEY }}" -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}