Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

release

release #39

Workflow file for this run

### Author: Frish2021 ###
name: release
on:
workflow_dispatch:
inputs:
version:
type: string
description: A version input.
jobs:
build:
name: Build NBT-jar
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
java-version: '22'
distribution: 'temurin'
architecture: x64
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: build jar
run: ./gradlew build
- name: Upload artifacts
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.CREATE_RELEASE }}
tag_name: '${{ inputs.version }}'
name: 'NBT-${{inputs.version}}'
files: 'build/targets/NBT-${{inputs.version}}.jar'