mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-24 12:40:36 +00:00
fix: 修正 actions version 获取错误
This commit is contained in:
10
.github/workflows/release-drafter.yml
vendored
10
.github/workflows/release-drafter.yml
vendored
@@ -19,9 +19,7 @@ jobs:
|
|||||||
id: get_version
|
id: get_version
|
||||||
run: |
|
run: |
|
||||||
TAG=$(basename ${GITHUB_REF})
|
TAG=$(basename ${GITHUB_REF})
|
||||||
VERSION=${TAG/v/}
|
|
||||||
echo "::set-output name=TAG::$TAG"
|
echo "::set-output name=TAG::$TAG"
|
||||||
echo "::set-output name=VERSION::$VERSION"
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: release-drafter/release-drafter@v5
|
uses: release-drafter/release-drafter@v5
|
||||||
@@ -43,10 +41,10 @@ jobs:
|
|||||||
- name: Create Upload Assets
|
- name: Create Upload Assets
|
||||||
run: |
|
run: |
|
||||||
rm -rf build/*
|
rm -rf build/*
|
||||||
mv lina lina-${{ steps.get_version.outputs.VERSION }}
|
mv lina lina-${{ steps.get_version.outputs.TAG }}
|
||||||
tar -czf lina-${{ steps.get_version.outputs.VERSION }}.tar.gz lina-${{ steps.get_version.outputs.VERSION }}
|
tar -czf lina-${{ steps.get_version.outputs.TAG }}.tar.gz lina-${{ steps.get_version.outputs.TAG }}
|
||||||
echo $(md5sum lina-${{ steps.get_version.outputs.VERSION }}.tar.gz | awk '{print $1}') > build/lina-${{ steps.get_version.outputs.VERSION }}.tar.gz.md5
|
echo $(md5sum lina-${{ steps.get_version.outputs.TAG }}.tar.gz | awk '{print $1}') > build/lina-${{ steps.get_version.outputs.TAG }}.tar.gz.md5
|
||||||
mv lina-${{ steps.get_version.outputs.VERSION }}.tar.gz build/
|
mv lina-${{ steps.get_version.outputs.TAG }}.tar.gz build/
|
||||||
- name: Release Upload Assets
|
- name: Release Upload Assets
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
Reference in New Issue
Block a user