2023-06-19 08:43:19 +02:00
|
|
|
name: Create release on tag push
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'release/*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build the_vault-tweaks
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout source code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2023-06-20 08:59:18 +02:00
|
|
|
- name: Setup Gradle
|
|
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
|
|
|
|
- name: Run build with Gradle Wrapper
|
|
|
|
run: ./gradlew build
|
|
|
|
|
2023-06-19 08:43:19 +02:00
|
|
|
- name: Draft release
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
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
|