reqwest4j/.github/workflows/publish-maven.yml
2023-01-29 22:22:56 +00:00

33 lines
677 B
YAML

name: Build and Publish on Maven
on:
push:
tags:
- '*'
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
reqwest-jni
- run: cargo install cross
- name: set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
check-latest: true
cache: "gradle"
- name: Run Build
run: ./gradlew publish
env:
USERNAME: ${{ secrets.MAVEN_USERNAME }}
PASSWORD: ${{ secrets.MAVEN_PASSWORD }}