diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f430fa80..2fb4fa70 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,31 +1,36 @@ name: Build -on: - push: - branches: - - 'master' - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Set up JDK 17 - uses: actions/setup-java@v1 - with: - java-version: 17 - - name: Build with Gradle - run: ./gradlew build '-Pversion=${{ github.run_number }}' - - name: Upload Artifact - uses: actions/upload-artifact@v2 - with: - name: DFScript - path: ./build/libs/CodeClient*.jar - - name: Publish Release - uses: marvinpinto/action-automatic-releases@latest - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "Build-${{ github.run_number }}" - prerelease: false - files: | - ./build/libs/CodeClient-${{ github.run_number }}.jar +on: + push: + branches: + - master +permissions: + id-token: "write" + contents: "write" + packages: "write" + pull-requests: "read" +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: "temurin" + - name: Build with Gradle + run: ./gradlew build '-Pversion=${{ github.run_number }}' + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: CodeClient + path: ./build/libs/CodeClient*.jar + - name: Publish Release + uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "v${{ github.run_number }}-beta" + prerelease: true + files: | + ./build/libs/ diff --git a/README.md b/README.md new file mode 100644 index 00000000..343038d3 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# CodeClient +A DiamondFire utility client for advanced coding. diff --git a/build.gradle b/build.gradle index 29d6b10d..9ab8e389 100644 --- a/build.gradle +++ b/build.gradle @@ -64,12 +64,12 @@ java { // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task // if it is present. // If you remove this line, sources will not be generated. - withSourcesJar() + // withSourcesJar() } jar { from("LICENSE") { - rename { "${it}_${project.archivesBaseName}" } + rename { "${it}_${project.archivesBaseName}" } } } diff --git a/gradle.properties b/gradle.properties index 78de03f5..ce68a28d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ minecraft_version=1.19.2 yarn_mappings=1.19.2+build.28 loader_version=0.14.14 # Mod Properties -mod_version=1.0-SNAPSHOT +mod_version=1.0 maven_group=dev.dfonline archives_base_name=CodeClient # Dependencies diff --git a/gradlew b/gradlew old mode 100644 new mode 100755