upgrade to 1.21 #7
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: Deployment | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # required to create a release on the repository | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
# validate gradle wrapper signature | |
- uses: gradle/wrapper-validation-action@v1 | |
# Gradle caching and more | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
# perform the gradle build | |
- name: Execute Gradle Build | |
run: ./gradlew build publish github modrinth --stacktrace -Porg.gradle.parallel.threads=4 | |
env: | |
DEPLOY_URL: ${{ secrets.DEPLOY_URL }} | |
DEPLOY_USER: ${{ secrets.DEPLOY_USER }} | |
DEPLOY_PASSWORD: ${{ secrets.DEPLOY_PASSWORD }} | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |