Files
redkale/.github/workflows/maven_snapshot.yml
redkale 5fe760c40b pom
2024-05-31 23:46:34 +08:00

34 lines
887 B
YAML

name: Maven Snapshot
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11]
name: Java ${{ matrix.java }} build
steps:
- uses: actions/checkout@v4
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
server-id: ossrh
server-username: ${{ secrets.OSSRHUSERNAME }}
server-password: ${{ secrets.OSSRHPASSWORD }}
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
gpg-passphrase: ${{ secrets.OSSRH_GPG_SECRET_PASSWORD }}
- name: Show the Gpg
run: gpg --list-secret-keys
- name: Detail the Gpg
run: tail -n100 /tmp/private-key.asc
- name: Build with Maven
run: mvn --batch-mode clean deploy -DskipTests=true