bld/.github/workflows/publish.yml
Erik C. Thauvin 3301b23748
Some checks failed
bld-ci / build (./bld, 17, macos-latest, false) (push) Has been cancelled
bld-ci / build (./bld, 21, macos-latest, false) (push) Has been cancelled
bld-ci / build (./bld, 25, macos-latest, false) (push) Has been cancelled
bld-ci / build (./bld, 26, macos-latest, false) (push) Has been cancelled
bld-ci / build (.\bld.bat, 17, windows-latest, false) (push) Has been cancelled
bld-ci / build (.\bld.bat, 21, windows-latest, false) (push) Has been cancelled
bld-ci / build (.\bld.bat, 25, windows-latest, false) (push) Has been cancelled
bld-ci / build (.\bld.bat, 26, windows-latest, false) (push) Has been cancelled
bld-ci / build (unittests, password, unittests, mariadb:10.9, mysql:8, gvenzl/oracle-free:latest, gvenzl/oracle-xe:18-slim, postgres:15, ./bld, 17, ubuntu-latest, true) (push) Has been cancelled
bld-ci / build (unittests, password, unittests, mariadb:10.9, mysql:8, gvenzl/oracle-free:latest, gvenzl/oracle-xe:18-slim, postgres:15, ./bld, 21, ubuntu-latest, true) (push) Has been cancelled
bld-ci / build (unittests, password, unittests, mariadb:10.9, mysql:8, gvenzl/oracle-free:latest, gvenzl/oracle-xe:18-slim, postgres:15, ./bld, 25, ubuntu-latest, true) (push) Has been cancelled
bld-ci / build (unittests, password, unittests, mariadb:10.9, mysql:8, gvenzl/oracle-free:latest, gvenzl/oracle-xe:18-slim, postgres:15, ./bld, 26, ubuntu-latest, true) (push) Has been cancelled
javadocs-pages / deploy (push) Has been cancelled
Replace Maven Central with round-robin repos in dependencies tests (#90)
* Correct Java LTS versions in matrix

* Revert "Update GitHub package repository in publish workflow"

This reverts commit ad40825ef4.

* Replace Maven Central with round-robin repos in dependencies tests
2026-06-26 00:37:44 -07:00

68 lines
2.1 KiB
YAML

name: publish-snapshots
on:
workflow_dispatch:
jobs:
publish-bld-project:
runs-on: ubuntu-latest
steps:
- name: Checkout source repository
uses: actions/checkout@v7
with:
clean: true
submodules: 'true'
fetch-depth: 0
- name: Check version is SNAPSHOT
shell: bash
run: |
VERSION=$(tr -d '[:space:]' < src/main/resources/BLD_VERSION)
echo "Current version: $VERSION"
if ! echo "$VERSION" | grep -q 'SNAPSHOT$'; then
echo "::error:: Version '$VERSION' is not a SNAPSHOT. Aborting publish."
exit 1
fi
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: "temurin"
java-version: 17
- name: Download dependencies
run: ./bld download
- name: Import key
run: echo "${{ secrets.SIGN_SECRET_KEY }}" | gpg --batch --import
- name: Compile source
run: ./bld clean compile
- name: Run tests
id: tests
run: ./bld test
- name: Run reporter
if: always() && steps.tests.outcome == 'failure'
run: ./bld --offline reporter --all
- name: Publish
run: >-
./bld publish
-Dbld.repo.github=https://maven.pkg.github.com/rife2/bld
-Dbld.repo.github.username=${{ secrets.GH_USERNAME }}
-Dbld.repo.github.password=${{ secrets.GH_PASSWORD }}
-Dbld.repo.rife2-snapshots=https://repo.rife2.com/snapshots/
-Dbld.repo.rife2-snapshots.username=${{ secrets.RIFE2_USERNAME }}
-Dbld.repo.rife2-snapshots.password=${{ secrets.RIFE2_PASSWORD }}
-Dbld.repo.central-snapshots=https://central.sonatype.com/repository/maven-snapshots/
-Dbld.repo.central-snapshots.username=${{ secrets.SONATYPE_USER }}
-Dbld.repo.central-snapshots.password=${{ secrets.SONATYPE_PASSWORD }}
-Dsign.key=${{ secrets.SIGN_KEY }}
-Dsign.passphrase=${{ secrets.SIGN_PASSPHRASE }}
- name: Delete GnuPG data
if: always()
run: rm -rfv $HOME/.gnupg