更新 maven-publish.yml

This commit is contained in:
Yang Yang
2024-02-23 03:05:33 +08:00
committed by GitHub
parent 3087b07318
commit 5dbd54e7c1

View File

@@ -18,6 +18,15 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set tag name
id: tag_name
run: |
if [ "${{ github.event_name }}" = "release" ]; then
echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
elif [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "::set-output name=tag::${{ github.event.inputs.tag }}"
fi
- name: Set up JDK 17
uses: actions/setup-java@v2
with: