Skip to content

Commit 6714424

Browse files
committed
try again to avoid dupplicate releases
1 parent 7e3cea0 commit 6714424

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ jobs:
6060
with:
6161
name: Artifacts-${{ matrix.minecraft_version }}
6262
path: build/libs/
63-
- name: Publish to CurseForge
63+
- name: Publish to CurseForge and GitHub Release
6464
uses: Kir-Antipov/mc-publish@v3.3
6565
if: startsWith(github.ref, 'refs/tags/')
6666
with:
6767
curseforge-id: 1286702
6868
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
69+
github-token: ${{ secrets.GITHUB_TOKEN }}
6970

7071
name: "SkyCofl ${{ github.ref_name }} Fabric ${{ matrix.minecraft_version }}"
7172
version: "${{ github.ref_name }}_Fabric_${{ matrix.minecraft_version }}"
@@ -83,13 +84,7 @@ jobs:
8384
dependencies: |
8485
fabric@${{ matrix.fabric_version }}(required){modrinth:P7dR8mSH}{curseforge:306612}#(ignore:github)
8586
86-
- name: Upload to GitHub Release
87-
uses: softprops/action-gh-release@v2
88-
if: startsWith(github.ref, 'refs/tags/')
89-
with:
90-
files: build/libs/SkyCofl-*-Fabric-*.jar
91-
env:
92-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
9388
# The name and version are switched for modrinth
9489
publish-modrinth:
9590
needs: build
@@ -118,6 +113,7 @@ jobs:
118113
with:
119114
modrinth-id: yso5yMlC
120115
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
116+
curseforge-token: ""
121117

122118
name: "SkyCofl ${{ github.ref_name }} Fabric ${{ matrix.minecraft_version }}"
123119
version: "${{ github.ref_name }}_Fabric_${{ matrix.minecraft_version }}"

0 commit comments

Comments
 (0)