Skip to content

Commit

Permalink
updated gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-1F committed Apr 11, 2022
1 parent 1acb199 commit 6a82142
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,11 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle', 'gradle.properties', '**/*.accesswidener') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: |
echo GITHUB_RUN_ID $GITHUB_RUN_ID
echo github.run_id ${{ github.run_id}}}
chmod +x gradlew
./gradlew build
env:
BUILD_ID: ${{ github.run_number }}

- uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: build/libs/
path: build/libs/
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle', 'gradle.properties', '**/*.accesswidener') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: |
chmod +x gradlew
Expand Down Expand Up @@ -94,7 +93,6 @@ jobs:
echo Unknown github event name $GITHUB_EVENT_NAME
exit 1
fi
- name: Read Properties mod_version
id: mod_version
uses: christian-draeger/[email protected]
Expand All @@ -112,10 +110,10 @@ jobs:
- name: Publish Minecraft Mods
uses: Kir-Antipov/[email protected]
with:
modrinth-id: 5MInqOGg
modrinth-id: 5MInqOGg # https://modrinth.com/mod/ivan-carpet-addition
modrinth-token: ${{ secrets.MODRINTH_API_TOKEN }}

curseforge-id: 441529
curseforge-id: 441529 # https://www.curseforge.com/minecraft/mc-mods/ivan-carpet-addition
curseforge-token: ${{ secrets.CF_API_TOKEN }}

github-tag: ${{ steps.release_info.outputs.tag_name }}
Expand Down

0 comments on commit 6a82142

Please sign in to comment.