2023-09-05 11:28:48 +02:00
|
|
|
name: Create release on tag push
|
2023-06-19 08:43:19 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'release/*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build the_vault-tweaks
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout source code
|
2023-09-05 11:28:48 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-06-19 08:43:19 +02:00
|
|
|
|
2023-06-20 08:59:18 +02:00
|
|
|
- name: Setup Gradle
|
2024-01-29 10:15:58 +01:00
|
|
|
uses: gradle/gradle-build-action@v3
|
2023-06-20 08:59:18 +02:00
|
|
|
|
|
|
|
- name: Run build with Gradle Wrapper
|
2023-06-20 09:17:25 +02:00
|
|
|
run: chmod +x ./gradlew && ./gradlew build
|
2023-06-20 08:59:18 +02:00
|
|
|
|
2023-06-19 08:43:19 +02:00
|
|
|
- name: Draft release
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
2023-06-23 22:49:15 +02:00
|
|
|
token: ${{ secrets.RELEASE_TOKEN }}
|
2023-06-20 08:59:18 +02:00
|
|
|
artifacts: "build/libs/the_vault-tweaks-1.18.2-*.jar"
|
2023-06-19 08:43:19 +02:00
|
|
|
bodyFile: "CHANGELOG.md"
|
|
|
|
draft: true
|