Skip to content

Commit

Permalink
cicd(CHN-208): find and extract filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff-Tian committed Mar 22, 2024
1 parent 76c91cd commit 2f7b680
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,19 @@ jobs:
draft: false
prerelease: false

- name: Find asset path
id: find
run: echo "::set-output name=path::$(echo ./keycloak-services-social-weixin-*.jar)"

- name: Extract file name
id: extract
run: echo "::set-output name=name::$(basename ${{ steps.find.outputs.path }})"
# 将生成的 artifacts 上传到 release 的附件中
- name: Upload release assets
if: steps.check_version.outputs.version_changed == 'true'
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/java-artifacts.zip # 使用先前下载的构件路径
asset_name: java-artifacts-${{ steps.get_current_version.outputs.current_version }}.zip
asset_content_type: application/zip
asset_path: ${{ steps.find.outputs.path }}
asset_name: ${{ steps.extract.outputs.name }}
asset_content_type: application/java-archive
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>org.keycloak</groupId>
<artifactId>keycloak-services-social-weixin</artifactId>
<packaging>jar</packaging>
<version>0.5.20</version>
<version>0.5.21</version>

<name>Keycloak Services Social WeiXin</name>
<description>Keycloak 微信登录插件,支持 PC 端扫码登录、关注公众号即登录、手机微信等登录方式。</description>
Expand Down

0 comments on commit 2f7b680

Please sign in to comment.