made some github action related changes in the build.gradle #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#name: "Build Release" | |
#on: push | |
#jobs: | |
# build: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - { uses: actions/checkout@v2, with: { fetch-depth: 0 } } | |
# - { | |
# name: "Set up JDK 17", | |
# uses: actions/setup-java@v2, | |
# with: { distribution: "temurin", java-version: "17" }, | |
# } | |
# - { | |
# name: "Build with Gradle", | |
# id: build, | |
# run: "chmod +x gradlew && ./gradlew build", | |
# } | |
# - name: Create Release | |
# id: create_release | |
# uses: actions/create-release@v1 | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
# with: | |
# tag_name: ${{ steps.build.outputs.version }} | |
# release_name: Release registry-lib-${{ steps.build.outputs.version }} | |
# - name: Upload Release Asset | |
# id: upload-release-asset | |
# uses: actions/upload-release-asset@v1 | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# with: | |
# upload_url: ${{ steps.create_release.outputs.upload_url }} | |
# asset_path: "build/libs/registry-lib-${{ steps.build.outputs.version }}.jar" | |
# asset_name: "registry-lib-${{ steps.build.outputs.version }}.jar" | |
# asset_content_type: application/java-archive | |
# - name: Upload to CurseForge | |
# uses: itsmeow/[email protected] | |
# with: | |
# file_path: "build/libs/registry-lib-${{ steps.build.outputs.version }}.jar" | |
# game_endpoint: "minecraft" | |
# relations: "fabric-api:requiredDependency,modmenu:optionalDependency" | |
# token: ${{ secrets.CF_API_TOKEN }} | |
# game_versions: "Minecraft 1.20:1.20.1,Java 17,Fabric,Client,Server" | |
# project_id: "776484" |