Skip to content

Publish Release

Publish Release #36

Workflow file for this run

name: Release
on: [
workflow_dispatch
]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- run: chmod +x ./gradlew
- name: Release
run: ./gradlew :fabric:modrinth :forge:modrinth :fabric:curseforge :forge:curseforge
env:
CURSE_TOKEN: ${{ secrets.CURSE_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
- run: ./gradlew generateDiscordEmbed
env:
MODRINTH_PROJECT_URL: ${{ secrets.MODRINTH_PROJECT_URL }}
CURSE_PROJECT_URL: ${{ secrets.CURSE_PROJECT_URL }}
EMBED_COLOR: ${{ secrets.EMBED_COLOR }}
WEBHOOK_THUMBNAIL: ${{ secrets.WEBHOOK_THUMBNAIL }}
WEBHOOK_USERNAME: ${{ secrets.WEBHOOK_USERNAME }}
WEBHOOK_AVATAR: ${{ secrets.WEBHOOK_AVATAR }}
- name: Trigger Discord Webhook
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
raw-data: embed.json