Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Faboslav committed Dec 16, 2022
1 parent 4ac8680 commit 56f46c1
Showing 1 changed file with 30 additions and 34 deletions.
64 changes: 30 additions & 34 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ env:
JAVA_VERSIONS: |
Java 17
Java 18
GAME_VERSIONS: |
1.18.2
FABRIC_DEPENDENCIES: |
fabric-api | depends | *
architectury-api | depends | *
FORGE_DEPENDENCIES: |
architectury-api | depends | *
QUILT_DEPENDENCIES: |
qsl | depends | *
architectury-api | depends | *
RETRY_ATTEMPTS: 3
RELAY_DELAY: 10000
VERSION_RESOLVER: latest
Expand All @@ -32,7 +30,7 @@ jobs:
uses: actions/checkout@v3

- name: "Set up JDK"
uses: actions/setup-java@v3.3.0
uses: actions/setup-java@v3.6.0
with:
java-version: 17
distribution: temurin
Expand All @@ -49,9 +47,9 @@ jobs:
with:
name: "friends-and-foes"
path: |
fabric/build/libs/friendsandfoes-fabric-mc1.18.2-1.4.6.jar
forge/build/libs/friendsandfoes-forge-mc1.18.2-1.4.6.jar
quilt/build/libs/friendsandfoes-quilt-mc1.18.2-1.4.6.jar
fabric/build/libs/friendsandfoes-fabric-${{ github.ref_name }}.jar
forge/build/libs/friendsandfoes-forge-${{ github.ref_name }}.jar
quilt/build/libs/friendsandfoes-quilt-${{ github.ref_name }}.jar
LICENSE.txt
publish-license-to-release:
Expand Down Expand Up @@ -87,7 +85,7 @@ jobs:
- name: "Publish Fabric to GitHub"
uses: AButler/[email protected]
with:
files: 'fabric/build/libs/friendsandfoes-fabric-mc1.18.2-1.4.6.jar'
files: fabric/build/libs/friendsandfoes-fabric-${{ github.ref_name }}.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}

publish-fabric-to-curseforge:
Expand All @@ -108,11 +106,11 @@ jobs:
curseforge-id: 551364
curseforge-token: ${{ secrets.CURSEFORGE_RELEASE_TOKEN }}

files-primary: "fabric/build/libs/friendsandfoes-fabric-mc1.18.2-1.4.6.jar"
files-primary: fabric/build/libs/friendsandfoes-fabric-${{ github.ref_name }}.jar
version-type: ${{ env.VERSION_TYPE }}
loaders: fabric
game-versions: 1.18.2
name: "Friends&Foes mc1.18.2-1.4.6 (Fabric)"
game-versions: ${{ env.GAME_VERSIONS }}
name: Friends&Foes ${{ github.ref_name }} (Fabric)
dependencies: ${{ env.FABRIC_DEPENDENCIES }}
java: ${{ env.JAVA_VERSIONS }}

Expand Down Expand Up @@ -140,12 +138,12 @@ jobs:
modrinth-unfeature-mode: version-intersection
modrinth-token: ${{ secrets.MODRINTH_RELEASE_TOKEN }}

files-primary: "fabric/build/libs/friendsandfoes-fabric-mc1.18.2-1.4.6.jar"
files-primary: fabric/build/libs/friendsandfoes-fabric-${{ github.ref_name }}.jar
version-type: ${{ env.VERSION_TYPE }}
loaders: fabric
game-versions: 1.18.2
name: "Friends&Foes mc1.18.2-1.4.6 (Fabric)"
version: "fabric-mc1.18.2-1.4.6"
game-versions: ${{ env.GAME_VERSIONS }}
name: Friends&Foes ${{ github.ref_name }} (Fabric)
version: fabric-${{ github.ref_name }}
dependencies: ${{ env.FABRIC_DEPENDENCIES }}
java: ${{ env.JAVA_VERSIONS }}
retry-attempts: ${{ env.RETRY_ATTEMPTS }}
Expand All @@ -167,7 +165,7 @@ jobs:
- name: "Publish Forge to GitHub"
uses: AButler/[email protected]
with:
files: 'forge/build/libs/friendsandfoes-forge-mc1.18.2-1.4.6.jar'
files: forge/build/libs/friendsandfoes-forge-${{ github.ref_name }}.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}

publish-forge-to-curseforge:
Expand All @@ -188,12 +186,11 @@ jobs:
curseforge-id: 602059
curseforge-token: ${{ secrets.CURSEFORGE_RELEASE_TOKEN }}

files-primary: "forge/build/libs/friendsandfoes-forge-mc1.18.2-1.4.6.jar"
files-primary: forge/build/libs/friendsandfoes-forge-${{ github.ref_name }}.jar
version-type: ${{ env.VERSION_TYPE }}
loaders: forge
game-versions: 1.18.2
name: "Friends&Foes mc1.18.2-1.4.6 (Forge)"
dependencies: ${{ env.FORGE_DEPENDENCIES }}
game-versions: ${{ env.GAME_VERSIONS }}
name: Friends&Foes ${{ github.ref_name }} (Forge)
java: ${{ env.JAVA_VERSIONS }}

retry-attempts: ${{ env.RETRY_ATTEMPTS }}
Expand All @@ -220,13 +217,12 @@ jobs:
modrinth-unfeature-mode: version-intersection
modrinth-token: ${{ secrets.MODRINTH_RELEASE_TOKEN }}

files-primary: "forge/build/libs/friendsandfoes-forge-mc1.18.2-1.4.6.jar"
files-primary: forge/build/libs/friendsandfoes-forge-${{ github.ref_name }}.jar
version-type: ${{ env.VERSION_TYPE }}
loaders: forge
game-versions: 1.18.2
name: "Friends&Foes mc1.18.2-1.4.6 (Forge)"
version: "forge-mc1.18.2-1.4.6"
dependencies: ${{ env.FORGE_DEPENDENCIES }}
game-versions: ${{ env.GAME_VERSIONS }}
name: Friends&Foes ${{ github.ref_name }} (Forge)
version: forge-${{ github.ref_name }}
java: ${{ env.JAVA_VERSIONS }}
retry-attempts: ${{ env.RETRY_ATTEMPTS }}
retry-delay: ${{ env.RETRY_DELAY }}
Expand All @@ -248,7 +244,7 @@ jobs:
- name: "Publish Quilt to GitHub"
uses: AButler/[email protected]
with:
files: 'quilt/build/libs/friendsandfoes-quilt-mc1.18.2-1.4.6.jar'
files: quilt/build/libs/friendsandfoes-quilt-${{ github.ref_name }}.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}

publish-quilt-to-curseforge:
Expand All @@ -269,11 +265,11 @@ jobs:
curseforge-id: 628248
curseforge-token: ${{ secrets.CURSEFORGE_RELEASE_TOKEN }}

files-primary: "quilt/build/libs/friendsandfoes-quilt-mc1.18.2-1.4.6.jar"
files-primary: quilt/build/libs/friendsandfoes-quilt-${{ github.ref_name }}.jar
version-type: ${{ env.VERSION_TYPE }}
loaders: quilt
game-versions: 1.18.2
name: "Friends&Foes mc1.18.2-1.4.6 (Quilt)"
game-versions: ${{ env.GAME_VERSIONS }}
name: Friends&Foes ${{ github.ref_name }} (Quilt)
dependencies: ${{ env.QUILT_DEPENDENCIES }}
java: ${{ env.JAVA_VERSIONS }}

Expand Down Expand Up @@ -301,12 +297,12 @@ jobs:
modrinth-unfeature-mode: version-intersection
modrinth-token: ${{ secrets.MODRINTH_RELEASE_TOKEN }}

files-primary: "quilt/build/libs/friendsandfoes-quilt-mc1.18.2-1.4.6.jar"
files-primary: quilt/build/libs/friendsandfoes-quilt-${{ github.ref_name }}.jar
version-type: ${{ env.VERSION_TYPE }}
loaders: quilt
game-versions: 1.18.2
name: "Friends&Foes mc1.18.2-1.4.6 (Quilt)"
version: "quilt-mc1.18.2-1.4.6"
game-versions: ${{ env.GAME_VERSIONS }}
name: Friends&Foes ${{ github.ref_name }} (Quilt)
version: quilt-${{ github.ref_name }}
dependencies: ${{ env.QUILT_DEPENDENCIES }}
java: ${{ env.JAVA_VERSIONS }}
retry-attempts: ${{ env.RETRY_ATTEMPTS }}
Expand Down

0 comments on commit 56f46c1

Please sign in to comment.