Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurocosh authored Jun 9, 2024
1 parent bc596cb commit abfb253
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:

runs-on: ubuntu-latest
permissions:
contents: read
# contents: read
contents: write

steps:
- name: Checkout repo
Expand Down Expand Up @@ -49,29 +50,25 @@ jobs:
- name: Build with Gradle Wrapper
run: ./gradlew build

- uses: Kir-Antipov/[email protected]
with:
# Only include this section if you wish to publish
# your assets on Modrinth.
# modrinth-id: AANobbMI
# modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

# Only include this section if you wish to publish
# your assets on CurseForge.
# curseforge-id: 394468
# curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

# Only include this section if you wish to publish
# your assets on GitHub.
github-token: ${{ secrets.GITHUB_TOKEN }}

#- name: Publish on CurseForge
# run: ./gradlew curseforge

- name: Get commit count
id: get_commit_count # Assign a unique ID to the step
run: |
commit_count=$(git rev-list HEAD --count)
echo "##@set-output name=commit_count::$commit_count"
- name: Print commit count
run: |
echo "Commit Count: ${{ steps.get_commit_count.outputs.commit_count }}"
- name: Read release_type from gradle.properties
id: release_type
uses: Reedyuk/[email protected]
with:
path: './gradle.properties'
property: 'release_type'

- name: Print release type
run: |
echo "Release type: ${{ steps.release_type.outputs.result }}"

# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
Expand Down

0 comments on commit abfb253

Please sign in to comment.