mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-19 14:59:25 +00:00
use atlas for version uploading
This commit is contained in:
35
.github/workflows/build-12110.yml
vendored
35
.github/workflows/build-12110.yml
vendored
@@ -14,6 +14,8 @@ jobs:
|
||||
BUILD_NUMBER: ${{ github.run_number }}
|
||||
outputs:
|
||||
build_number: ${{ env.BUILD_NUMBER }}
|
||||
jar_file: ${{ steps.prepare_jar.outputs.jar_file }}
|
||||
version: ${{ steps.prepare_jar.outputs.version }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
@@ -56,6 +58,7 @@ jobs:
|
||||
git config --global core.fscache true
|
||||
git config --global gc.auto 256
|
||||
chmod +x gradlew
|
||||
chmod +x scripts/uploadBuild.sh
|
||||
|
||||
- name: Apply Patches
|
||||
run: |
|
||||
@@ -65,18 +68,22 @@ jobs:
|
||||
- name: Build Paperclip Jar
|
||||
run: ./gradlew createMojmapPaperclipJar --stacktrace --parallel --no-daemon
|
||||
|
||||
- name: Prepare Release Info
|
||||
run: bash scripts/releaseInfo.sh
|
||||
env:
|
||||
BUILD_NUMBER: ${{ env.BUILD_NUMBER }}
|
||||
- name: Prepare and Move Paperclip Jar
|
||||
id: prepare_jar
|
||||
run: |
|
||||
VERSION="1.21.10"
|
||||
BUILD="${BUILD_NUMBER}"
|
||||
JAR_NAME="divinemc-${VERSION}-${BUILD}.jar"
|
||||
mv divinemc-server/build/libs/divinemc-paperclip-*-mojmap.jar divinemc-server/build/libs/${JAR_NAME}
|
||||
echo "jar_file=divinemc-server/build/libs/${JAR_NAME}" >> $GITHUB_OUTPUT
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
echo "JAR_FILE=divinemc-server/build/libs/${JAR_NAME}" >> $GITHUB_ENV
|
||||
|
||||
- name: Create Release
|
||||
uses: ncipollo/release-action@v1.15.0
|
||||
with:
|
||||
artifacts: ${{ env.jar }}
|
||||
bodyFile: ${{ env.info }}
|
||||
tag: ${{ env.tag }}
|
||||
name: ${{ env.name }}
|
||||
prerelease: ${{ env.experimental }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
makeLatest: ${{ env.make_latest }}
|
||||
- name: Upload to API
|
||||
env:
|
||||
API_URL: 'https://api.bxteam.org'
|
||||
API_KEY: ${{ secrets.ATLAS_API_KEY }}
|
||||
PROJECT_KEY: 'divinemc'
|
||||
VERSION_BRANCH: 'ver/1.21.10'
|
||||
JAR_FILE: ${{ env.JAR_FILE }}
|
||||
run: bash scripts/uploadBuild.sh
|
||||
|
||||
Reference in New Issue
Block a user