Publish Alpha #6
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
name: Publish Alpha | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
publish-alpha: | |
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 }} -Palpha |