the_vault-tweaks/.github/workflows/create-release.yaml

32 lines
691 B
YAML
Raw Permalink Normal View History

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
uses: actions/checkout@v4
2023-06-19 08:43:19 +02:00
2023-06-20 08:59:18 +02:00
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
2023-06-20 08:59:18 +02:00
- name: Run build with Gradle Wrapper
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