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

32 lines
694 B
YAML
Raw Normal View History

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: 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