mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-12-02 03:57:35 +08:00
[Env] [Ci] Add SNAPSHOT ci
This commit is contained in:
parent
01440fdb25
commit
b093c62136
32
.github/workflows/publish-maven-snapshot.yml
vendored
Normal file
32
.github/workflows/publish-maven-snapshot.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
name: Publish via Maven Central for SNAPSHOT version
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
branches:
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
publish-maven-central:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Java and Maven
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '11'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Publish to the Maven Central Repository
|
||||
uses: samuelmeuli/action-maven-publish@v1
|
||||
with:
|
||||
maven_profiles: 'deploy'
|
||||
maven_goals_phases: 'clean deploy'
|
||||
maven_args: '-DskipTests'
|
||||
gpg_private_key: ${{ secrets.GPG_SECRET }}
|
||||
gpg_passphrase: ${{ secrets.GPG_PASSWORD }}
|
||||
nexus_username: ${{ secrets.OSSRH_USERNAME }}
|
||||
nexus_password: ${{ secrets.OSSRH_TOKEN }}
|
Loading…
Reference in New Issue
Block a user