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:
|
2023-09-04 19:26:10 +05:30
|
|
|
- uses: actions/checkout@v4
|
2023-07-04 23:34:48 +05:30
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
2023-01-27 23:45:13 +05:30
|
|
|
- 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
|
2023-11-29 21:19:43 +05:30
|
|
|
uses: actions/setup-java@v4
|
2023-01-27 23:45:13 +05:30
|
|
|
with:
|
2024-03-29 01:35:36 +05:30
|
|
|
java-version: 21
|
|
|
|
distribution: zulu
|
2023-01-27 23:45:13 +05:30
|
|
|
check-latest: true
|
|
|
|
cache: "gradle"
|
2023-01-30 07:38:22 +05:30
|
|
|
- name: Save Private Key
|
|
|
|
run: echo -n "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" | base64 -d > secring.gpg
|
2023-01-27 23:45:13 +05:30
|
|
|
- name: Run Build
|
2023-01-30 07:38:22 +05:30
|
|
|
run: ./gradlew publish -Psigning.keyId=B4701DB2 -Psigning.password="${{ secrets.MAVEN_GPG_PASS }}" -Psigning.secretKeyRingFile=secring.gpg
|
2023-01-27 23:45:13 +05:30
|
|
|
env:
|
2023-01-30 03:52:56 +05:30
|
|
|
USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
|
|
|
PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|