Skip to content

Commit

Permalink
ci(version): 自动发布 修改 tag version
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx committed Aug 25, 2024
1 parent c7f3023 commit c9b9183
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 41 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/oss-release-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: publish SNAPSHOT maven package
name: Publish SNAPSHOT Maven Package
on:
workflow_dispatch:
push:
branches: [ release ]
workflow_dispatch:
push:
tags:
- 'v*' # 只在推送以 "v" 开头的标签时触发,如 "v1.0.0"

jobs:
oss-release-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 8
uses: actions/setup-java@v2
with:
Expand All @@ -29,7 +31,7 @@ jobs:
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Publish to Maven Central
run: mvn clean deploy -P release -Dmaven.test.skip=true
run: mvn clean deploy -P release -Dmaven.test.skip=true
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/oss-snapshot-deploy.yml

This file was deleted.

0 comments on commit c9b9183

Please sign in to comment.