Only publish on tag.

This commit is contained in:
Kavin 2023-01-29 11:59:14 +00:00
parent 9d2953693b
commit 9c3e6795ee
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -2,10 +2,8 @@ name: Build and Publish on Maven
on:
push:
paths-ignore:
- "**.md"
branches:
- main
tags:
- '*'
permissions:
packages: write
@ -16,6 +14,9 @@ jobs:
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