This repository has been archived by the owner on Jan 16, 2025. It is now read-only.
release #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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' |