Skip to content

Release

Release #13

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
tag:
required: true
description: "Tag"
status:
required: true
description: "Status (beta, stable)"
env:
VERSION: ${{ github.event.inputs.tag }}-${{ github.event.inputs.status }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: "21"
- name: Make gradlew executable
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build -PVERSION="${{ env.VERSION }}"
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: geyser-voice-artifacts
path: |
modules/paper/build/libs/
modules/velocity/build/libs/
modules/bungeecord/build/libs/
publish_release:
name: Publish release
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: geyser-voice-artifacts
path: release-artifacts/
- name: Create release
if: github.event.inputs.status == 'stable'
uses: ncipollo/release-action@v1.13.0
with:
prerelease: false
tag: ${{ github.event.inputs.tag }}
artifacts: |
release-artifacts/**/*.jar
env:
GITHUB_REPOSITORY: AvionBlock/GeyserVoice
- name: Create pre-release
if: github.event.inputs.status != 'stable'
uses: ncipollo/release-action@v1.13.0
with:
prerelease: true
tag: ${{ github.event.inputs.tag }}
artifacts: |
release-artifacts/**/*.jar
env:
GITHUB_REPOSITORY: AvionBlock/GeyserVoice
- name: Create Modrinth release
uses: dsx137/modrinth-release-action@main
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
with:
name: GeyserVoice ${{ github.event.inputs.tag }}
project_id: WtPu56Wa
loaders: paper, purpur, velocity, bungeecord
game_versions: 1.20.2:1.21.10
version_number: ${{ github.event.inputs.tag }}
featured: ${{ github.event.inputs.status == 'stable' }}
version_type: ${{ github.event.inputs.status == 'stable' && 'release' || 'beta' }}
files: |
./release-artifacts/**/*.jar