Compare commits
3 commits
neoforge-1
...
neoforge
Author | SHA1 | Date | |
---|---|---|---|
Stephen Seo | bba99d4e6a | ||
Stephen Seo | 356502f722 | ||
Stephen Seo | 75976c8d9a |
|
@ -5,8 +5,21 @@ on:
|
||||||
- '*'
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
check-release-exists:
|
||||||
|
runs-on: any_archLinux
|
||||||
|
outputs:
|
||||||
|
status: ${{ steps.release_exists_check.outputs.http_code }}
|
||||||
|
steps:
|
||||||
|
- name: Check if release already exists
|
||||||
|
id: release_exists_check
|
||||||
|
run: |
|
||||||
|
curl -X GET "https://git.seodisparate.com/api/v1/repos/stephenseo/TurnBasedMinecraftMod/releases/tags/${GITHUB_REF_NAME}" \
|
||||||
|
-H 'accept: application/json' -o release_check_resp.json 2>/dev/null \
|
||||||
|
-w '%{http_code}\n' | sed 's/^\([0-9]\+\)/http_code=\1/' >> "$GITHUB_OUTPUT"
|
||||||
build-and-create-release:
|
build-and-create-release:
|
||||||
runs-on: archLinux
|
needs: check-release-exists
|
||||||
|
if: ${{ needs.check-release-exists.outputs.status == '404' }}
|
||||||
|
runs-on: any_archLinux
|
||||||
steps:
|
steps:
|
||||||
- run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/TurnBasedMinecraftMod.git TurnBasedMinecraftMod
|
- run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/TurnBasedMinecraftMod.git TurnBasedMinecraftMod
|
||||||
- run: cd TurnBasedMinecraftMod && git checkout ${GITHUB_REF_NAME}
|
- run: cd TurnBasedMinecraftMod && git checkout ${GITHUB_REF_NAME}
|
||||||
|
|
|
@ -13,7 +13,7 @@ https://git.seodisparate.com/stephenseo/TurnBasedMinecraftMod/releases
|
||||||
|
|
||||||
# Forge or NeoForge
|
# Forge or NeoForge
|
||||||
|
|
||||||
The `master` branch tracks the version of the mod for Minecraft Forge.
|
The `forge` branch tracks the version of the mod for Minecraft Forge.
|
||||||
|
|
||||||
The `neoforge` branch tracks the version of the mod for Minecraft NeoForge.
|
The `neoforge` branch tracks the version of the mod for Minecraft NeoForge.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue