Skip to content

Publish Artifacts

Publish Artifacts #3

name: Publish Artifacts
on:
push:
tags:
- '**'
workflow_dispatch:
jobs:
publish-maven:
strategy:
matrix:
shard: [ 1, 2, 3, 4, 5, 6]
fail-fast: false
runs-on: ubuntu-latest
env:
SONATYPE_DEPLOY_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_DEPLOY_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_PGP_SECRET: ${{ secrets.SONATYPE_PGP_PRIVATE_KEY }}
SONATYPE_PGP_PASSWORD: ${{ secrets.SONATYPE_PGP_PRIVATE_KEY_PASSWORD }}
LANG: "en_US.UTF-8"
LC_MESSAGES: "en_US.UTF-8"
LC_ALL: "en_US.UTF-8"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: '8'
distribution: temurin
- run: test -z "$SONATYPE_PGP_SECRET" || echo "$SONATYPE_PGP_SECRET" | base64 --decode | gpg --import --no-tty --batch --yes
- run: GPG_TTY=$(tty) ./mill -i publishSonatype __.publishArtifacts --shard ${{ matrix.shard }} --divisionCount 6
publish-docs:
runs-on: ubuntu-latest
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: '8'
distribution: temurin
- name: publish docs
shell: 'script -q -e -c "bash {0}"'
run: echo "Hello World" && ./mill -i publishDocs
env:
TERM: xterm-256color
publish-executable:
runs-on: ubuntu-latest
env:
AMMONITE_BOT_AUTH_TOKEN: ${{ secrets.AMMONITE_BOT_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: '8'
distribution: temurin
- run: ./mill -i publishExecutable