Skip to content

feat!: 1.21.1 + build: update Takenaka to 1.2.0 #169

feat!: 1.21.1 + build: update Takenaka to 1.2.0

feat!: 1.21.1 + build: update Takenaka to 1.2.0 #169

Workflow file for this run

name: Build and publish BedWars ver/0.2.x
on:
push:
branches: [ ver/0.2.x ]
concurrency: bedwars_0_2_x
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set the Build number
id: calculated_build_number
env:
NUM: ${{ github.run_number }}
run: echo "build_n=$(($NUM+40))" >> $GITHUB_OUTPUT
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew
env:
NEXUS_URL_RELEASE: ${{ secrets.NEXUS_URL_RELEASE }}
NEXUS_URL_SNAPSHOT: ${{ secrets.NEXUS_URL_SNAPSHOT }}
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
JAVADOC_HOST: ${{ secrets.JAVADOC_HOST }}
JAVADOC_SECRET: ${{ secrets.JAVADOC_SECRET }}
JAVADOC_USER: ${{ secrets.JAVADOC_USER }}
OPTIMIZE_FOR_CI_CD: "1"
BUILD_NUMBER: ${{ steps.calculated_build_number.outputs.build_n }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL_0_2_X }}
REPOSILITE_BASE_URL: ${{ secrets.REPOSILITE_BASE_URL }}
GITHUB_ACTIONS_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
- name: Upload the final artifact
uses: actions/upload-artifact@v4
with:
path: plugin/build/libs/BedWars*[!s].jar