Skip to content

Commit

Permalink
update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
MarbleGateKeeper committed Feb 22, 2024
1 parent 76d507d commit 85dd5d0
Showing 1 changed file with 56 additions and 13 deletions.
69 changes: 56 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permissions:
contents: write

env:
MINECRAFT_VERSION: 1.20.1
MINECRAFT_VERSION: 1.20.4
JAVA_VERSION: 17
VERSION: 2.1.0
MODRINTH_ID: owUiXPam
Expand Down Expand Up @@ -33,8 +33,31 @@ jobs:
- name: Build
run: ./gradlew build

- name: Publish NeoForge to CurseForge
uses: Kir-Antipov/[email protected]
with:
# CurseForge
curseforge-id: ${{ env.CURSEFORGE_ID }}
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

# Config
name: "[NeoForge] Creeper Firework ${{ env.VERSION }} for ${{ env.MINECRAFT_VERSION }}"
version: ${{ env.VERSION }}
version-type: release
changelog-file: changelog/${{ env.VERSION }}.md
files: forge/build/libs/*-${{ env.VERSION }}!(-@(dev|sources|slim|dev-shadow)).jar

loaders: |
neoforge
game-versions: |
${{ env.MINECRAFT_VERSION }}
java: |
${{ env.JAVA_VERSION }}
retry-attempts: 2
retry-delay: 10000

- name: Publish Forge to CurseForge
uses: Kir-Antipov/mc-publish@v3.2
uses: Kir-Antipov/mc-publish@v3.3
with:
# CurseForge
curseforge-id: ${{ env.CURSEFORGE_ID }}
Expand All @@ -45,8 +68,7 @@ jobs:
version: ${{ env.VERSION }}
version-type: release
changelog-file: changelog/${{ env.VERSION }}.md
files-primary: forge/build/libs/*-${{ env.VERSION }}!(-@(dev|sources|slim)).jar
files-secondary: ""
files: forge/build/libs/*-${{ env.VERSION }}!(-@(dev|sources|slim|dev-shadow)).jar

loaders: |
forge
Expand All @@ -58,7 +80,7 @@ jobs:
retry-delay: 10000

- name: Publish Fabric/Quilt to CurseForge
uses: Kir-Antipov/mc-publish@v3.2
uses: Kir-Antipov/mc-publish@v3.3
with:
# CurseForge
curseforge-id: ${{ env.CURSEFORGE_ID }}
Expand All @@ -69,8 +91,7 @@ jobs:
version: ${{ env.VERSION }}
version-type: release
changelog-file: changelog/${{ env.VERSION }}.md
files-primary: fabric/build/libs/*-${{ env.VERSION }}!(-@(dev|sources|slim)).jar
files-secondary: ""
files: fabric/build/libs/*-${{ env.VERSION }}!(-@(dev|sources|slim|dev-shadow)).jar

loaders: |
fabric
Expand All @@ -85,8 +106,32 @@ jobs:
retry-attempts: 2
retry-delay: 10000

- name: Publish NeoForge to Modrinth
uses: Kir-Antipov/[email protected]
with:
# Modrinth
modrinth-id: ${{ env.MODRINTH_ID }}
modrinth-featured: true
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

# Config
name: "Creeper Firework ${{ env.VERSION }} for ${{ env.MINECRAFT_VERSION }}"
version: ${{ env.VERSION }}
version-type: release
changelog-file: changelog/${{ env.VERSION }}.md
files: neoforge/build/libs/*-${{ env.VERSION }}!(-@(dev|sources|slim|dev-shadow)).jar

loaders: |
neoforge
game-versions: |
${{ env.MINECRAFT_VERSION }}
java: |
${{ env.JAVA_VERSION }}
retry-attempts: 2
retry-delay: 10000

- name: Publish Forge to Modrinth
uses: Kir-Antipov/mc-publish@v3.2
uses: Kir-Antipov/mc-publish@v3.3
with:
# Modrinth
modrinth-id: ${{ env.MODRINTH_ID }}
Expand All @@ -98,8 +143,7 @@ jobs:
version: ${{ env.VERSION }}
version-type: release
changelog-file: changelog/${{ env.VERSION }}.md
files-primary: forge/build/libs/*-${{ env.VERSION }}!(-@(dev|sources|slim)).jar
files-secondary: ""
files: forge/build/libs/*-${{ env.VERSION }}!(-@(dev|sources|slim|dev-shadow)).jar

loaders: |
forge
Expand All @@ -111,7 +155,7 @@ jobs:
retry-delay: 10000

- name: Publish Fabric/Quilt to Modrinth
uses: Kir-Antipov/mc-publish@v3.2
uses: Kir-Antipov/mc-publish@v3.3
with:
# Modrinth
modrinth-id: ${{ env.MODRINTH_ID }}
Expand All @@ -123,8 +167,7 @@ jobs:
version: ${{ env.VERSION }}
version-type: release
changelog-file: changelog/${{ env.VERSION }}.md
files-primary: fabric/build/libs/*-${{ env.VERSION }}!(-@(dev|sources|slim)).jar
files-secondary: ""
files: fabric/build/libs/*-${{ env.VERSION }}!(-@(dev|sources|slim|dev-shadow)).jar

loaders: |
fabric
Expand Down

0 comments on commit 85dd5d0

Please sign in to comment.