Deploy workflow #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy with Maven | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ "*" ] | ||
jobs: | ||
build_test: | ||
uses: ./github/workflows/maven.yml | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 23 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '23' | ||
distribution: 'temurin' | ||
cache: maven | ||
- uses: s4u/maven-settings-action@v3.1.0 | ||
with: | ||
servers: | | ||
[{ | ||
"id": "central", | ||
"username": "${{ secrets.CENTRAL_USERNAME }}", | ||
"password": "${{ secrets.CENTRAL_TOKEN }}" | ||
}] | ||
- name: Cache jextract | ||
id: cache-jextract | ||
uses: actions/cache@v4 | ||
with: | ||
path: jextract | ||
key: 22-jextract+5-33 | ||
- name: Set up jextract | ||
if: steps.cache-jextract.outputs.cache-hit != 'true' | ||
run: ./prepare-jextract.sh | ||
- name: Deploy with Maven | ||
env: | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | ||
MAVEN_GPG_KEY: ${{ secrets.MAVEN_GPG_KEY }} | ||
run: | | ||
./prepare.sh | ||
mvn -B -ntp -f jgpio/pom.xml -P release deploy -DskipTests -Dgpg.signer=bc -Djextract.bin=../jextract/bin/jextract |