Skip to content

chore: update all dependencies with patch changes #10729

chore: update all dependencies with patch changes

chore: update all dependencies with patch changes #10729

Workflow file for this run

name: "Build"
on:
push:
branches: [ "**" ]
tags-ignore: [ "**" ]
pull_request:
workflow_dispatch:
concurrency:
cancel-in-progress: true
group: build-${{ github.event.pull_request.number || github.ref }}
jobs:
build:
runs-on: ubuntu-latest
name: Build and publish
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup java
uses: actions/setup-java@v5
with:
java-version: 25
check-latest: true
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
with:
add-job-summary: always
cache-cleanup: on-success
cache-read-only: ${{ github.ref != 'refs/heads/nightly' }}
cache-encryption-key: ${{ secrets.GRADLE_CONFIG_CACHE_SECRET }}
# automatically publishes build scans on nightly
build-scan-publish: ${{ github.ref == 'refs/heads/nightly' }}
build-scan-terms-of-use-agree: yes
build-scan-terms-of-use-url: 'https://gradle.com/terms-of-service'
- name: Execute build and tests
run: ./gradlew build genUpdaterInformation --no-daemon
- name: Publish test summary
if: ${{ always() }}
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: '**/build/test-results/test/TEST-*.xml'
comment_mode: ${{ github.event_name == 'pull_request' && 'always' || 'off' }}
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v9
- name: Publish updater metadata
uses: s0/git-publish-subdir-action@develop
if: ${{ github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/heads/renovate/') }}
env:
REPO: [email protected]:CloudNetService/launchermeta.git
BRANCH: ${{ steps.branch-name.outputs.current_branch }}
FOLDER: '.launchermeta'
SQUASH_HISTORY: true
SKIP_EMPTY_COMMITS: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
MESSAGE: 'Update launcher meta for {target-branch} (commit: {sha})'
- name: Set version type in GitHub environment
run: |
if [ "$(./gradlew properties | awk '/^version:/ { print $2; }' | grep '\-SNAPSHOT')" ]; then
echo "STATUS=snapshot" >> $GITHUB_ENV
else
echo "STATUS=release" >> $GITHUB_ENV
fi
- name: Publish snapshot to central portal
if: ${{ github.event_name == 'push' && env.STATUS != 'release' && startsWith(github.ref, 'refs/heads/nightly') }}
run: ./gradlew publish --no-daemon
env:
CENTRAL_USER: "${{ secrets.CENTRAL_USER }}"
CENTRAL_PASSWORD: "${{ secrets.CENTRAL_PASSWORD }}"
- name: Prepare artifacts zip
run: |
mkdir -p temp/;
mkdir -p temp/plugins;
cp -r .template/* temp/;
cp LICENSE temp/license.txt;
cp launcher/java22/build/libs/launcher.jar temp/launcher.jar;
find plugins/ -type f -regex '.*/build/libs/.*\.jar' ! -name '*-javadoc.jar' ! -name '*-sources.jar' -exec cp {} temp/plugins \;
- name: Upload artifacts zip
uses: actions/upload-artifact@v6
with:
name: CloudNet
path: temp/