diff --git a/.github/jvm.config b/.github/jvm.config new file mode 100644 index 000000000..c8644b4b5 --- /dev/null +++ b/.github/jvm.config @@ -0,0 +1 @@ +-XX:-TieredCompilation -XX:TieredStopAtLevel=1 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4bb49652e..c2052af3b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,31 +3,38 @@ name: Deploy a branch on: workflow_dispatch: inputs: - - deploy-artifacts-to-gh-packages: - description: "Deploy artifacts to GH Packages" + dry-run: + description: "Dry run the deployment" default: true type: boolean - deploy-javadoc-to-gh-pages: - description: "Deploy JavaDocs to GH Pages" - default: true + skip-scm: + description: "Skip tagging and release version update commits" + default: false type: boolean -jobs: - build: - name: Build - uses: ./.github/workflows/build.yml + skip-dependency-scan: + description: "Skip dependency scan" + default: false + type: boolean - github: - name: "Deploy to GitHub" - needs: [build] + skip-tests: + description: "Skip tests" + default: false + type: boolean + + version: + description: "Version (leave blank to release non-SNAPSHOT patch)" + default: "" + type: string + +jobs: + maven-central: + name: "Maven Central" runs-on: ubuntu-22.04 permissions: - contents: read - packages: write - pages: write + contents: write id-token: write steps: @@ -36,38 +43,99 @@ jobs: with: fetch-depth: 2 - - name: Initialize JDK + - name: Initialize Java environment uses: actions/setup-java@v3 with: distribution: zulu # Must use >= JDK 17 for Javadocs to generate correctly. java-version: 17 + server-id: ossrh + server-username: OSSRH_USERNAME + server-password: OSSRH_TOKEN + gpg-passphrase: GPG_PASSPHRASE + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + + - name: Configure Git + shell: bash + run: |- + source ./scripts/common.sh + + info "Applying Git user configuration" + run <