Skip to content

Commit

Permalink
Add tagged-release GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
ab5tract committed Sep 15, 2024
1 parent 97ac22d commit 7a40746
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release plugin zip

on:
push:
tags:
- "v*"

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'zulu'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0

- name: Setup Gradle Wrapper
run: gradle wrapper

- name: Build with Gradle
run: ./gradlew build

- name: Press a release on GitHub with the downloadable .zip
uses: ncipollo/release-action@v1
with:
draft: false
allowUpdates: true
artifacts: "build/distributions/*.zip"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7a40746

Please sign in to comment.