From d25c5e8bacf8063892ff4dfdbbbf53a667659f12 Mon Sep 17 00:00:00 2001 From: Rhys Yang Date: Wed, 18 Oct 2023 01:15:45 +0800 Subject: [PATCH] Create package_repo.yml --- .github/workflows/package_repo.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/package_repo.yml diff --git a/.github/workflows/package_repo.yml b/.github/workflows/package_repo.yml new file mode 100644 index 0000000..33ae46f --- /dev/null +++ b/.github/workflows/package_repo.yml @@ -0,0 +1,31 @@ +name: Package Repository with Submodules + +on: + release: + types: + - published + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + with: + submodules: true + + - name: Update Submodules + run: git submodule update --init --recursive + + - name: Create ZIP Archive + run: | + mkdir repo_with_submodules + cp -r * repo_with_submodules + zip -r repo_with_submodules.zip repo_with_submodules + + - name: Upload ZIP Archive + uses: actions/upload-artifact@v2 + with: + name: repo_with_submodules + path: ${{ steps.get_tag.outputs.tag }}.zip