mirror of
https://github.com/barkeser2002/JMT-MCMT.git
synced 2026-09-25 05:09:58 +03:00
Agent-Logs-Url: https://github.com/barkeser2002/JMT-MCMT/sessions/edc4c2c9-556d-4092-805f-5d6f303a23f9 Co-authored-by: barkeser2002 <45911502+barkeser2002@users.noreply.github.com>
39 lines
780 B
YAML
39 lines
780 B
YAML
name: Build and Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 8
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "8"
|
|
cache: gradle
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x ./gradlew
|
|
|
|
- name: Build with Gradle
|
|
run: ./gradlew build
|
|
|
|
- name: Create GitHub release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
name: Release ${{ github.ref_name }}
|
|
tag_name: ${{ github.ref_name }}
|
|
generate_release_notes: true
|
|
files: build/libs/*
|