mirror of
https://github.com/AlmostReliable/almostunified.git
synced 2024-12-02 12:27:36 -05:00
fix release workflow pre release resolving, add dependencies
This commit is contained in:
parent
802fb18106
commit
253a464248
1 changed files with 24 additions and 4 deletions
28
.github/workflows/release.yml
vendored
28
.github/workflows/release.yml
vendored
|
@ -31,6 +31,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
rm -f ~/.gradle/caches/modules-2/modules-2.lock
|
rm -f ~/.gradle/caches/modules-2/modules-2.lock
|
||||||
rm -f ~/.gradle/caches/modules-2/gc.properties
|
rm -f ~/.gradle/caches/modules-2/gc.properties
|
||||||
|
|
||||||
- name: Make Gradle executable
|
- name: Make Gradle executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
|
|
||||||
|
@ -57,7 +58,7 @@ jobs:
|
||||||
set_var JAR_FILE $(eval echo build/libs/${{ env.MOD_ID }}-*-*-*.jar)
|
set_var JAR_FILE $(eval echo build/libs/${{ env.MOD_ID }}-*-*-*.jar)
|
||||||
set_var MINECRAFT_VERSION $(echo ${JAR_FILE%.*} | cut -d- -f3)
|
set_var MINECRAFT_VERSION $(echo ${JAR_FILE%.*} | cut -d- -f3)
|
||||||
set_var MOD_VERSION $(echo ${JAR_FILE%.*} | cut -d- -f4)
|
set_var MOD_VERSION $(echo ${JAR_FILE%.*} | cut -d- -f4)
|
||||||
set_var RELEASE_TYPE "$(echo ${GITHUB_REF##*/} | cut -d- -f5)"
|
set_var RELEASE_TYPE "$(echo ${GITHUB_REF##*/} | cut -d- -f3)"
|
||||||
set_var RELEASE_TYPE "$([[ -z $RELEASE_TYPE ]] && echo release || echo $RELEASE_TYPE)"
|
set_var RELEASE_TYPE "$([[ -z $RELEASE_TYPE ]] && echo release || echo $RELEASE_TYPE)"
|
||||||
|
|
||||||
- name: Install changelog parser
|
- name: Install changelog parser
|
||||||
|
@ -67,7 +68,7 @@ jobs:
|
||||||
run: parse-changelog CHANGELOG.md ${{ env.MOD_VERSION }} > changes.md
|
run: parse-changelog CHANGELOG.md ${{ env.MOD_VERSION }} > changes.md
|
||||||
|
|
||||||
- name: Release Fabric to CF and MR
|
- name: Release Fabric to CF and MR
|
||||||
uses: Kir-Antipov/mc-publish@v3.1
|
uses: Kir-Antipov/mc-publish@v3.2
|
||||||
with:
|
with:
|
||||||
curseforge-id: 633823
|
curseforge-id: 633823
|
||||||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
|
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
|
||||||
|
@ -84,11 +85,20 @@ jobs:
|
||||||
game-versions: ${{ env.MINECRAFT_VERSION }}
|
game-versions: ${{ env.MINECRAFT_VERSION }}
|
||||||
version-resolver: exact
|
version-resolver: exact
|
||||||
java: ${{ env.JAVA_VERSION }}
|
java: ${{ env.JAVA_VERSION }}
|
||||||
|
|
||||||
|
curseforge-dependencies: |
|
||||||
|
jei | suggests | *
|
||||||
|
roughly-enough-items | suggests | *
|
||||||
|
kubejs | suggests | *
|
||||||
|
modrinth-dependencies: |
|
||||||
|
roughly-enough-items | suggests | *
|
||||||
|
kubejs | suggests | *
|
||||||
|
|
||||||
retry-attempts: 2
|
retry-attempts: 2
|
||||||
retry-delay: 10000
|
retry-delay: 10000
|
||||||
|
|
||||||
- name: Release Forge to CF and MR
|
- name: Release Forge to CF and MR
|
||||||
uses: Kir-Antipov/mc-publish@v3.1
|
uses: Kir-Antipov/mc-publish@v3.2
|
||||||
with:
|
with:
|
||||||
curseforge-id: 633823
|
curseforge-id: 633823
|
||||||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
|
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
|
||||||
|
@ -105,14 +115,24 @@ jobs:
|
||||||
game-versions: ${{ env.MINECRAFT_VERSION }}
|
game-versions: ${{ env.MINECRAFT_VERSION }}
|
||||||
version-resolver: exact
|
version-resolver: exact
|
||||||
java: ${{ env.JAVA_VERSION }}
|
java: ${{ env.JAVA_VERSION }}
|
||||||
|
|
||||||
|
curseforge-dependencies: |
|
||||||
|
jei | suggests | *
|
||||||
|
roughly-enough-items | suggests | *
|
||||||
|
kubejs | suggests | *
|
||||||
|
modrinth-dependencies: |
|
||||||
|
roughly-enough-items | suggests | *
|
||||||
|
kubejs | suggests | *
|
||||||
|
|
||||||
retry-attempts: 2
|
retry-attempts: 2
|
||||||
retry-delay: 10000
|
retry-delay: 10000
|
||||||
|
|
||||||
- name: Release to GitHub
|
- name: Release to GitHub
|
||||||
uses: Kir-Antipov/mc-publish@v3.1
|
uses: Kir-Antipov/mc-publish@v3.2
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
files: build/libs/${{ env.MOD_ID }}-*-${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}.jar
|
files: build/libs/${{ env.MOD_ID }}-*-${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}.jar
|
||||||
|
name: v${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}
|
||||||
version: ${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}
|
version: ${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}
|
||||||
version-type: ${{ env.RELEASE_TYPE }}
|
version-type: ${{ env.RELEASE_TYPE }}
|
||||||
changelog-file: changes.md
|
changelog-file: changes.md
|
||||||
|
|
Loading…
Reference in a new issue