-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,8 @@ jobs: | |
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
# contents: read | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout repo | ||
|
@@ -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. | ||
|