diff --git a/.github/workflows/package-pubilsh.yml b/.github/workflows/package-pubilsh.yml deleted file mode 100644 index 471855b..0000000 --- a/.github/workflows/package-pubilsh.yml +++ /dev/null @@ -1,43 +0,0 @@ -# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created -# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path -# also ref: -# Publishing packages to GitHub Packages: -# https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-java-packages-with-maven#publishing-packages-to-github-packages -# -# Upgrade to Automatic token authentication, no need for personal access token anymore -# ref: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-a-registry-using-a-personal-access-token -# - -name: Publish to GitHub Packages - -run-name: 'Package Publish #${{github.run_number}}' - -on: - release: - types: [published] - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - permissions: - packages: write - contents: read - - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - - name: Set up JDK - uses: actions/setup-java@v4 - with: - java-version: '21' - distribution: 'oracle' - server-id: 'github-package' - - - name: Publish to GitHub Packages Apache Maven - run: ./gradlew publish - env: - GITHUB_MAVEN_URL: https://maven.pkg.github.com/${{github.repository}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file diff --git a/README.md b/README.md index b874fc4..0cd6cbe 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ -# LockettePro [![AutoBuilder](https://github.com/NyaaCat/LockettePro/actions/workflows/autobuild.yml/badge.svg)](https://github.com/NyaaCat/LockettePro/actions/workflows/autobuild.yml) +# LockettePro [![Build Status](https://ci.nyaacat.com/job/LockettePro/job/main/badge/icon?style=flat-square)](https://ci.nyaacat.com/job/LockettePro/job/main/) > [!CAUTION]\ > ***Versions for Minecraft 1.21 are not fully tested yet.*** > Please create an issue if you find anything wrong. Thank you. -The Builds afterward will be migrated to [GitHub actions](https://github.com/NyaaCat/LockettePro/actions/workflows/autobuild.yml) due to Nyaa CI server closed. +All versions can be found at [Nyaa CI server](https://ci.nyaacat.com/job/LockettePro/) +For the newest build on main branch, click [here](https://ci.nyaacat.com/job/LockettePro/job/main/lastSuccessfulBuild/) ### LockettePro - A much better Lockette plugin for Bukkit diff --git a/src/main/Jenkinsfile b/src/main/Jenkinsfile new file mode 100644 index 0000000..d9c8042 --- /dev/null +++ b/src/main/Jenkinsfile @@ -0,0 +1,21 @@ + +pipeline { + agent any + stages { + stage('Build') { + tools { + jdk "jdk21" + } + steps { + sh './gradlew build' + } + } + } + + post { + always { + archiveArtifacts artifacts: 'build/libs/*.jar', fingerprint: true + cleanWs() + } + } +} \ No newline at end of file