Skip to content

Support sounds in AdvancementsScreen #119

Support sounds in AdvancementsScreen

Support sounds in AdvancementsScreen #119

Workflow file for this run

# Automatically build the project and run any configured tests for every push
# and submitted pull request. This can help catch issues that only occur on
# certain platforms or Java versions, and provides a first line of defence
# against bad commits.
name: Build and Release
on:
push:
branches:
- dev
- 'port/**'
- 'workflow/**'
tags:
- 'v3/**'
pull_request:
jobs:
build:
strategy:
matrix:
java: [ 25 ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
submodules: recursive
- name: Get Commit hash
run: |
if [ "${EVENT_NAME}" = "pull_request" ]; then
COMMIT_SHA=${PULL_SHA}
else
COMMIT_SHA=${GITHUB_SHA}
fi
echo "SHORT_SHA=$(echo $COMMIT_SHA | cut -c1-8)" >> $GITHUB_ENV
env:
EVENT_NAME: ${{ github.event_name }}
PULL_SHA: ${{ github.event.pull_request.head.sha }}
- name: Export Version
if: github.ref_type == 'tag'
run: echo "VERSION=${GITHUB_REF_NAME#*/}" >> $GITHUB_ENV
- name: Java ${{ matrix.java }} setup
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: gradle
- name: Make gradlew executable
if: runner.os == 'Linux'
run: chmod +x ./gradlew
- name: Setup Gradle
uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
- name: Gradle build
run: ./gradlew build -PverStr=${VERSION}
- name: Capture build artifacts
if: ${{ runner.os == 'Linux' }} # Only upload artifacts built from LTS java on one OS
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: "extrasounds-dev+${{env.SHORT_SHA}}"
path: build/libs/
- name: Create GitHub Release
if: github.ref_type == 'tag'
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
with:
files: build/libs/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}