mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-22 18:47:20 +01:00
38 lines
918 B
YAML
38 lines
918 B
YAML
name: Create Release Version
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
release_on_push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '11'
|
|
distribution: 'adopt'
|
|
cache: gradle
|
|
|
|
- name: Validate Gradle wrapper
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
- name: Test & Build
|
|
uses: gradle/gradle-build-action@v2
|
|
with:
|
|
arguments: clean build -x assemble -x shadowJar
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Create release
|
|
uses: rymndhng/release-on-push-action@v0.27.0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
with:
|
|
bump_version_scheme: norelease
|
|
tag_prefix: ''
|
|
release_name: "Release <RELEASE_VERSION>"
|
|
use_github_release_notes: true
|