Skip to content

Commit

Permalink
🚀 Add CI workflow for releasing on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandens committed Oct 31, 2023
1 parent 43886d0 commit 084bbd4
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|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)'

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: ${{ github.ref != 'refs/heads/main' }}

- 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 084bbd4

Please sign in to comment.