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