Skip to content

Update translations with new format #205

Update translations with new format

Update translations with new format #205

Workflow file for this run

name: Gradle build
on:
push:
branches: [ master ]
tags: [ 'v*' ]
pull_request:
branches: [ master ]
jobs:
build_and_test:
if: github.repository_owner == 'uskyblock'
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
- name: Install gettext
run: sudo apt-get install -y gettext
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
- name: Build with Gradle
run: ./gradlew build translation publishAllPublicationsToStagingRepository --no-daemon --no-configuration-cache
# Install our SSH key:
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
if: ${{ github.event_name == 'push' }}
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ secrets.SSH_KNOWN_HOST }}
# Mark our scripts runnable:
- name: Mark deploy scripts runnable
if: ${{ github.event_name == 'push' }}
run: |
chmod +x "${GITHUB_WORKSPACE}/.github/deploy-staging.sh"
chmod +x "${GITHUB_WORKSPACE}/.github/deploy-release.sh"
# Deploy from master branch (staging release):
- name: Run deploy script for staging release
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: "${GITHUB_WORKSPACE}/.github/deploy-staging.sh"
# Deploy from tag create (plugin release):
- name: Run deploy script for plugin release
if: ${{ github.event_name == 'push' && startsWith( github.ref, 'refs/tags/') }}
run: "${GITHUB_WORKSPACE}/.github/deploy-release.sh"