Skip to content

Publish Beta

Publish Beta #2

Workflow file for this run

name: Publish Beta
on:
workflow_dispatch:
inputs:
version:
description: 'Version Indicator'
default: '1'
required: true
type: string
permissions:
contents: read
jobs:
publish-beta:
environment: Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'adopt'
cache: 'gradle'
- name: Install Crowdin CLI
run: npm i -g @crowdin/cli
- name: Download translations
run: crowdin download
env:
CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }}
- name: Publish
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: publishAll -PMAVEN_URL=${{ secrets.MAVEN_URL }} -PMAVEN_USER=${{ secrets.MAVEN_USER }} -PMAVEN_TOKEN=${{ secrets.MAVEN_TOKEN }} -PCURSEFORGE_API=${{ secrets.CURSEFORGE_API }} -PMODRINTH_API=${{ secrets.MODRINTH_API }} -Pbeta=${{ github.event.inputs.version }}