Skip to content

Fix project ids

Fix project ids #13

Workflow file for this run

on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Get previous tag
run: echo "previous_tag=$(git rev-parse $(git describe --tags --abbrev=0 --exclude *-dev) 2>/dev/null || echo '')" >> $GITHUB_ENV
- name: Build Changelog
id: build_changelog
uses: metcalfc/[email protected]
if: env.previous_tag
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{ github.ref }}
base-ref: ${{ env.previous_tag }}
fetch: false
- name: Read value from Properties-file
id: read_property
uses: christian-draeger/[email protected]
with:
path: './gradle.properties'
properties: 'mod_version minecraft_version'
- name: Upload assets to releases
run: |
chmod +x gradlew
./gradlew build
- name: Publish to Modrinth & CurseForge
uses: Kir-Antipov/[email protected]
with:
modrinth-id: o4Wx4DUB
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 823106
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
name: "[${{ steps.read_property.outputs.minecraft_version }}] v${{ steps.read_property.outputs.mod_version }}"
changelog: ${{steps.build_changelog.outputs.changelog}}
version-type: release
loaders: |
neoforge
forge
game-versions: |
${{ steps.read_property.outputs.minecraft_version }}
dependencies: |
config-menus-forge(optional){modrinth:5WeWGLoJ}{curseforge:544048}
java: |
17