2023-01-27 23:45:13 +05:30
|
|
|
name: Build and Publish on Maven
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-01-29 17:29:14 +05:30
|
|
|
tags:
|
|
|
|
- '*'
|
2023-01-27 23:45:13 +05:30
|
|
|
|
|
|
|
permissions:
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
2023-01-29 17:29:14 +05:30
|
|
|
with:
|
|
|
|
workspaces: |
|
|
|
|
reqwest-jni
|
2023-01-27 23:45:13 +05:30
|
|
|
- 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:
|
2023-01-30 03:52:56 +05:30
|
|
|
USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
|
|
|
PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|