mirror of
https://github.com/TeamPiped/reqwest4j.git
synced 2024-12-13 13:50:39 +05:30
33 lines
677 B
YAML
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 }}
|