-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.01 KB
/
release.yml
File metadata and controls
44 lines (36 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Release
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
release:
name: "Tagged Release"
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
- uses: gradle/actions/wrapper-validation@v4
- uses: actions/setup-java@v4
if: "github.ref == 'refs/tags/${{ steps.get-latest-tag.outputs.tag }}'"
with:
distribution: "temurin"
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: true
- name: Build
run: ./gradlew build collectBuilds
- name: Generate Version Changelog
run: ./gradlew generateVersionChangelog
- name: Release
uses: Kira-NT/mc-publish@v3.3
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
changelog-file: "build/changelog"
files: builds/*.jar