Update config to hack embeddium #127
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Release | |
on: | |
push: | |
branches: | |
- '**/stable' | |
- '**/backport' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
- 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/changelog-generator@v4.1.0 | |
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/read-properties@1.1.1 | |
with: | |
path: './gradle.properties' | |
properties: 'mod_version minecraft_version' | |
- name: Upload assets to releases | |
run: | | |
chmod +x gradlew | |
./gradlew build publish | |
env: | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
- name: Publish to Modrinth & CurseForge | |
uses: Kir-Antipov/mc-publish@v3.3 | |
with: | |
modrinth-id: oY2B1pjg | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
curseforge-id: 654373 | |
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
name: "[NeoForge ${{ steps.read_property.outputs.minecraft_version }}] v${{ steps.read_property.outputs.mod_version }}" | |
changelog: ${{steps.build_changelog.outputs.changelog}} | |
version-type: release | |
loaders: | | |
neoforge | |
game-versions: | | |
${{ steps.read_property.outputs.minecraft_version }} | |
dependencies: | | |
embeddium | |
oculus(optional) | |
java: | | |
21 |