Skip to content

Update dev_build.yml #468

Update dev_build.yml

Update dev_build.yml #468

Workflow file for this run

name: Release

Check failure on line 1 in .github/workflows/dev_build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dev_build.yml

Invalid workflow file

(Line: 4, Col: 1): 'on' is already defined
on: push
on:
workflow_dispatch:
inputs:
version:
description: 'Version number (e.g., 1.1.3)'
required: true
default: '1.1.3'
mc_version:
description: 'Minecraft number (e.g., 1.21.8)'
required: true
default: '1.21.8'
env:
APP_VERSION: ${{ github.event.inputs.version }}
MC: ${{ github.event.inputs.mc_version }}
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 21
distribution: 'zulu'
- name: Build
run: ./gradlew build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: binaries
path: |
./build/libs/*.jar
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ env.MC }}_${{ env.APP_VERSION }}
name: 🌟 Hypixel Cry Fabric ${{ env.MC }} v${{ env.APP_VERSION }} 🌟
body: |
![Downloads](https://img.shields.io/github/downloads/Nekiplay/Hypixel-Cry/v${{ env.MC }}_${{ env.APP_VERSION }}/total) ![Version](https://img.shields.io/badge/version-${{ env.APP_VERSION }}-blue) ![Platform](https://img.shields.io/badge/platform-Windows%20|%20Linux-orange)
## 👏 Contributors Hall of Fame
Special thanks to our amazing contributors who made this release possible:
- **@Nekiplay** - Core improvements and feature implementations
- **@KreedMan** - Features tester
files: |
./build/libs/*.jar