Remove YmlConfigurationTest#saveToFile because it keeps breaking on l… #105
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: Maven build | |
on: | |
push: | |
branches: [ master ] | |
tags: [ 'v*' ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build_and_test: | |
if: github.repository_owner == 'uskyblock' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Checkout submodules | |
run: | | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | |
git submodule update --init --recursive | |
- name: Generate additional language files | |
run: | | |
cd uSkyBlock-Core/src/main/po && perl en2pirate.pl && cd - | |
cd uSkyBlock-Core/src/main/po && perl en2kitteh.pl && cd - | |
- name: JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Install gettext | |
run: sudo apt-get install -y gettext | |
- name: Cache Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build with Maven | |
run: mvn -U -Pi18n clean deploy | |
# 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" |