Skip to content

Commit

Permalink
👷 add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandens committed Dec 29, 2023
1 parent 35957bf commit 4577e3b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Publish release"

on:
push:
tags:
- '[0-9].[0-9]+.[0-9]+'

jobs:
release-build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
distribution: temurin
java-version: 17
- name: Set up Gradle
uses: gradle/[email protected]
with:
cache-read-only: false

- name: Execute Gradle build
run: ./gradlew build

- name: Publish release to Gradle Plugin Portal
run: "./gradlew publishPlugins --no-configuration-cache"
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}

0 comments on commit 4577e3b

Please sign in to comment.