Skip to content

Commit

Permalink
Fix publishing
Browse files Browse the repository at this point in the history
[ci publish]
  • Loading branch information
Cadiboo committed Jun 14, 2024
1 parent 792d6cf commit 89b5011
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 26 deletions.
44 changes: 19 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,35 @@ jobs:
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build and check (fabric)
- name: Build and check
run: ./gradlew :fabric:build --stacktrace
- name: Archive development jars (fabric)
- name: Archive development jars
uses: actions/upload-artifact@v4
with:
name: Development jars inside (fabric)
path: |
fabric/build/devlibs/*.jar
if-no-files-found: error
- name: Archive playable jar (fabric)
- name: Archive playable jar
uses: actions/upload-artifact@v4
with:
name: Playable mod jar inside (fabric)
path: |
fabric/build/libs/*.jar
if-no-files-found: error
- name: Integration tests (forge)
- name: Integration tests
run: ./gradlew :fabric:runGameTestServer --stacktrace
- name: Publish
uses: Kir-Antipov/mc-publish@v3.3
if: "contains(github.event.head_commit.message, '[ci publish]')"
with:
version-type: beta
files: fabric/build/libs/*.jar
github-token: ${{ secrets.GITHUB_TOKEN }}
github-commitish: ${{ env.GITHUB_SHA }}
github-files-primary: fabric/build/libs/*.jar
github-files-secondary: fabric/build/devlibs/*.jar
curseforge-id: 309664
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
modrinth-id: w3bbwFYU
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
github-token: ${{ secrets.RELEASES_GITHUB_TOKEN }}
# curseforge-id: 309664
# curseforge-token: "secrets.CURSEFORGE_TOKEN"
# modrinth-id: w3bbwFYU
# modrinth-token: "secrets.MODRINTH_TOKEN"
build-forge:
runs-on: ubuntu-latest
steps:
Expand All @@ -57,9 +54,9 @@ jobs:
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build and check (forge)
- name: Build and check
run: ./gradlew :forge:build --stacktrace
- name: Archive development jars (forge)
- name: Archive development jars
uses: actions/upload-artifact@v4
with:
name: Development jars inside (forge)
Expand All @@ -68,7 +65,7 @@ jobs:
forge/build/libs/*-sources.jar
forge/build/libs/*-javadoc.jar
if-no-files-found: error
- name: Archive playable jar (forge)
- name: Archive playable jar
uses: actions/upload-artifact@v4
with:
name: Playable mod jar inside (forge)
Expand All @@ -78,19 +75,16 @@ jobs:
!forge/build/libs/*-sources.jar
!forge/build/libs/*-javadoc.jar
if-no-files-found: error
- name: Integration tests (forge)
- name: Integration tests
run: ./gradlew :forge:runGameTestServer --stacktrace
- name: Publish
uses: Kir-Antipov/mc-publish@v3.3
if: "contains(github.event.head_commit.message, '[ci publish]')"
with:
version-type: beta
files: forge/build/libs/!(*-@(dev|sources|javadoc)).jar
github-token: ${{ secrets.GITHUB_TOKEN }}
github-commitish: ${{ env.GITHUB_SHA }}
github-files-primary: forge/build/libs/!(*-@(dev|sources|javadoc)).jar
github-files-secondary: forge/build/libs/*-@(dev|sources|javadoc).jar
curseforge-id: 309664
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
modrinth-id: w3bbwFYU
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
files: forge/build/libs/!(*-@(sources|dev|dev-shadow|javadoc).jar)
github-token: ${{ secrets.RELEASES_GITHUB_TOKEN }}
# curseforge-id: 309664
# curseforge-token: "secrets.CURSEFORGE_TOKEN"
# modrinth-id: w3bbwFYU
# modrinth-token: "secrets.MODRINTH_TOKEN"
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ minecraft_version=1.20.1
forge_version=47.2.30
forge_loader_version_range=[47,)
forge_version_range=[47,)
minecraft_version_range=[1.20.1, 1.21)
minecraft_version_range=[1.20.1,)

# Fabric
fabric_loader_version=0.15.10
Expand Down

0 comments on commit 89b5011

Please sign in to comment.