Version 1.1.0 #5
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: Build and Release (1.20) | |
on: | |
push: | |
branches: | |
- "1.20/main" | |
jobs: | |
build: | |
name: "Build and Release" | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- run: chmod +x gradlew | |
- name: Build Version | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build --stacktrace --no-daemon | |
- name: Setting mod version | |
run: | | |
cat $GITHUB_WORKSPACE/gradle.properties | grep ^archives_base_name= >> $GITHUB_ENV | |
cat $GITHUB_WORKSPACE/gradle.properties | grep ^minecraft_version= >> $GITHUB_ENV | |
cat $GITHUB_WORKSPACE/gradle.properties | grep ^mod_version= >> $GITHUB_ENV | |
- name: Publish Forge version | |
uses: Kir-Antipov/mc-publish@v3.3 | |
with: | |
name: PantheonSent ${{ env.mod_version }} for Forge/NeoForge ${{ env.minecraft_version }} | |
version: ${{ env.mod_version }}+${{ env.minecraft_version }}-forge | |
modrinth-id: SIKMQqt0 | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
curseforge-id: 968457 | |
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | |
changelog-file: CHANGELOG.md | |
loaders: | | |
forge | |
neoforge | |
game-versions: | | |
${{ env.minecraft_version }} | |
files: | | |
forge/build/libs/!(*-@(dev-shadow|sources|javadoc)).jar | |
dependencies: | | |
palladium(required){modrinth:lt2zd42r}{curseforge:963363} | |
curios(optional){modrinth:vvuO3ImH}{curseforge:309927} | |
- name: Publish Fabric version | |
uses: Kir-Antipov/mc-publish@v3.3 | |
with: | |
name: PantheonSent ${{ env.mod_version }} for Fabric/Quilt ${{ env.minecraft_version }} | |
version: ${{ env.mod_version }}+${{ env.minecraft_version }}-fabric | |
modrinth-id: SIKMQqt0 | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
curseforge-id: 968457 | |
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | |
changelog-file: CHANGELOG.md | |
loaders: | | |
fabric | |
quilt | |
game-versions: | | |
${{ env.minecraft_version }} | |
files: | | |
fabric/build/libs/!(*-@(dev-shadow|sources|javadoc)).jar | |
dependencies: | | |
palladium(required){modrinth:lt2zd42r}{curseforge:963363} | |
trinkets(optional){modrinth:5aaWibi9}{curseforge:341284} | |
- name: Send SquirrelControl Update | |
uses: tyrrrz/action-http-request@master | |
with: | |
url: https://squirrelcontrol.threetag.net/api/mod-update-post | |
method: POST | |
headers: | | |
Content-Type: application/json | |
body: | | |
{ | |
"mod": "pantheonsent", | |
"version": "${{ env.mod_version }}", | |
"token": "${{ secrets.SQUIRRELCONTROL_API_TOKEN }}" | |
} | |
retry-count: 3 | |
retry-delay: 500 | |
- name: Publish to Maven | |
uses: gradle/gradle-build-action@v2 | |
env: | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
with: | |
arguments: publish --stacktrace --no-daemon |