Skip to content

Release 1.0.0

Release 1.0.0 #29

Workflow file for this run

name: Build
on:
release:
types: [ created ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 7 (fails from toolchain)
uses: actions/setup-java@v4
with:
java-version: '7'
distribution: 'zulu'
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
run: ./gradlew publish -Pmvn.user=${{ secrets.MAVEN_USER }} -Pmvn.key=${{ secrets.MAVEN_TOKEN }} -PossrhUsername=${{ secrets.OSSRH_USERNAME }} -PossrhPassword=${{ secrets.OSSRH_PASSWORD }} -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}
- uses: actions/upload-artifact@v2
with:
name: base
path: build/libs
- uses: actions/upload-artifact@v2
with:
name: api
path: java-api/build/libs
- uses: actions/upload-artifact@v2
with:
name: gradle
path: gradle-plugin/build/libs
- name: Build Site
run: ./gradlew :site:build
- uses: actions/upload-artifact@v2
with:
name: site
path: site/build/libs
- name: Load Gradle Properties
uses: christian-draeger/[email protected]
id: gradle_properties
with:
path: './gradle.properties'
properties: 'version'
- name: Upload to Release
uses: JasonEtco/[email protected]
with:
args: ./build/libs/jvmdowngrader-${{ steps.gradle_properties.outputs.version }}-all.jar application/jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}