forked from Mirror/ollama4j
init
This commit is contained in:
parent
6984ece2b6
commit
7edcd7f14d
58
.github/workflows/maven-publish1.yml
vendored
58
.github/workflows/maven-publish1.yml
vendored
@ -1,29 +1,29 @@
|
|||||||
# This workflow will build a Java project with Maven
|
## This workflow will build a Java project with Maven
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
## For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
||||||
|
#
|
||||||
name: CI - Publish to Maven Central Sonatype
|
#name: CI - Publish to Maven Central Sonatype
|
||||||
|
#
|
||||||
on:
|
#on:
|
||||||
push:
|
# push:
|
||||||
branches: [ main ]
|
# branches: [ main ]
|
||||||
|
#
|
||||||
jobs:
|
#jobs:
|
||||||
build:
|
# build:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
- name: Set up Maven Central Repository
|
# - name: Set up Maven Central Repository
|
||||||
uses: actions/setup-java@v1
|
# uses: actions/setup-java@v1
|
||||||
with:
|
# with:
|
||||||
java-version: 1.8
|
# java-version: 1.8
|
||||||
server-id: ossrh
|
# server-id: ossrh
|
||||||
server-username: MAVEN_USERNAME
|
# server-username: MAVEN_USERNAME
|
||||||
server-password: MAVEN_PASSWORD
|
# server-password: MAVEN_PASSWORD
|
||||||
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
|
# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
|
||||||
gpg-passphrase: MAVEN_GPG_PASSPHRASE
|
# gpg-passphrase: MAVEN_GPG_PASSPHRASE
|
||||||
- name: Deploy with Maven
|
# - name: Deploy with Maven
|
||||||
run: mvn -B clean deploy -Pci-cd
|
# run: mvn -B clean deploy -Pci-cd
|
||||||
env:
|
# env:
|
||||||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
# MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
||||||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
|
# MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
|
||||||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
|
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
|
Loading…
x
Reference in New Issue
Block a user