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

release

release #42

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: '8'
distribution: 'temurin'
architecture: x64
- name: Make gradlew executable
run: chmod +x ./build.sh
- name: build jar
run: bash ./build.sh
- name: Upload artifacts
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.CREATE_RELEASE }}
tag_name: '${{ inputs.version }}'
name: 'NBT-${{inputs.version}}'
files: |
'target/NBT-${{inputs.version}}.jar'
'target/NBT-${{inputs.version}}-javadoc.jar'
'target/NBT-${{inputs.version}}-sources.jar'