Skip to content

⬆️ grpc->1.61.0 (#50) #12

⬆️ grpc->1.61.0 (#50)

⬆️ grpc->1.61.0 (#50) #12

Workflow file for this run

# 相当于脚本用途的一个声明
name: Snapshot
# 触发脚本的事件 这里为发布release之后触发
on:
push:
branches:
- main
- release*
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}