Skip to content

chore: update CHANGELOG #65

chore: update CHANGELOG

chore: update CHANGELOG #65

Workflow file for this run

name: Release
# Controls when the action will run.
on:
# Triggers the workflow on push events
push:
tags:
- '*'
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
# Checkout repository
- name: Checkout
uses: actions/checkout@v4
# Get tag version from ref
- name: Get tag version
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
# Setup JDK
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: 11
cache: 'gradle'
# Validate Gradle Wrapper
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v2
# Build
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew buildPlugin
# Create Release
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "build/mirai/*.jar"
artifactContentType: application/jar
tag: ${{ steps.vars.outputs.tag }}
token: ${{ secrets.GITHUB_TOKEN }}