revert attribute modifier changes #34
Workflow file for this run
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: Upload Release Artifacts | |
on: | |
push: | |
tags: [ '*' ] | |
env: | |
BUILD_NUMBER: ${{ github.run_number }} | |
JAVA_VERSION: 21 | |
MAVEN_UPLOAD_URL: ${{ secrets.MAVEN_UPLOAD_URL }} | |
MAVEN_UPLOAD_USERNAME: ${{ secrets.MAVEN_UPLOAD_USERNAME }} | |
MAVEN_UPLOAD_PASSWORD: ${{ secrets.MAVEN_UPLOAD_PASSWORD }} | |
TAG: ${{ github.ref_name }} | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get current time | |
uses: srfrnk/current-time@master | |
id: current-time | |
with: | |
format: YYYYMMDDHHmmss | |
- name: Set up JDK ${{ env.JAVA_VERSION }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
distribution: 'microsoft' | |
cache: 'gradle' | |
- name: Validate Gradle Wrapper | |
uses: gradle/actions/wrapper-validation@v4 | |
- name: Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew assemble --rerun-tasks | |
env: | |
BUILD_TIME: ${{ steps.current-time.outputs.formattedTime }} | |
- name: Maven Release | |
if: ${{ env.MAVEN_UPLOAD_URL }} | |
run: ./gradlew publish | |
- name: Publish (GitHub Releases) | |
id: publish_github | |
uses: Kir-Antipov/mc-publish@995edadc13559a8b28d0b7e6571229f067ec7659 | |
with: | |
github-token: ${{ github.token }} | |
version: ${{ env.TAG }} | |
files: | | |
**/build/libs/!(*-@(dev|sources|javadoc|slim)).jar | |
**/build/libs/*-@(sources|javadoc).jar | |
- name: Publish (NeoForge) | |
id: publish_neoforge | |
continue-on-error: true | |
uses: Kir-Antipov/mc-publish@995edadc13559a8b28d0b7e6571229f067ec7659 | |
with: | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | |
version: ${{ env.TAG }}+NeoForge | |
files: | | |
NeoForge/build/libs/!(*-@(dev|sources|javadoc|slim)).jar | |
NeoForge/build/libs/*-@(sources|javadoc).jar | |
- name: Publish (Fabric) | |
id: publish_fabric | |
continue-on-error: true | |
uses: Kir-Antipov/mc-publish@995edadc13559a8b28d0b7e6571229f067ec7659 | |
with: | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | |
version: ${{ env.TAG }}+Fabric | |
files: | | |
Fabric/build/libs/!(*-@(dev|sources|javadoc|slim)).jar | |
Fabric/build/libs/*-@(sources|javadoc).jar | |
- name: Notify Discord | |
uses: Up-Mods/action-discord-release@main | |
with: | |
version: ${{ env.TAG }} | |
webhook-url: ${{ secrets.ANNOUNCEMENT_WEBHOOK_URL }} | |
curseforge-project-id: ${{ steps.publish_fabric.outputs.curseforge-id }} | |
modrinth-project-id: ${{ steps.publish_fabric.outputs.modrinth-id }} | |
thumbnail-url: https://mod-assets.upcraft.dev/promo/icarus/icon_128x.png |