From bb069f599d9e3706775e021b5ea376e9eaaa7a72 Mon Sep 17 00:00:00 2001 From: Rhys Yang Date: Wed, 18 Oct 2023 01:19:51 +0800 Subject: [PATCH] Update package_repo.yml --- .github/workflows/package_repo.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/package_repo.yml b/.github/workflows/package_repo.yml index 33ae46f..1816356 100644 --- a/.github/workflows/package_repo.yml +++ b/.github/workflows/package_repo.yml @@ -18,11 +18,16 @@ jobs: - name: Update Submodules run: git submodule update --init --recursive + - name: Get Tag Name + id: get_tag + run: echo "::set-output name=tag::$(git describe --tags --abbrev=0)" + - name: Create ZIP Archive run: | - mkdir repo_with_submodules - cp -r * repo_with_submodules - zip -r repo_with_submodules.zip repo_with_submodules + tag_name="${{ steps.get_tag.outputs.tag }}" + mkdir "$tag_name" + cp -r . "$tag_name" + zip -r "$tag_name.zip" "$tag_name" - name: Upload ZIP Archive uses: actions/upload-artifact@v2