From c81f3c3e39dd141e59efb3e4736280625b5ba789 Mon Sep 17 00:00:00 2001 From: Benjamin Webb Date: Thu, 20 Jul 2023 16:21:08 -0400 Subject: [PATCH] Add ZIP and Archive to action --- action.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index db31222..1ae7670 100644 --- a/action.yml +++ b/action.yml @@ -58,9 +58,6 @@ outputs: runs: using: "composite" steps: - - uses: actions/checkout@v3 - with: - repository: cgs-earth/sitemap-generator - shell: bash env: SOURCE_REPO: ${{ inputs.source_repo }} @@ -69,3 +66,15 @@ runs: run: | pip3 install git+https://github.com/cgs-earth/sitemap-generator.git sitemap-generator run ${{ inputs.namespace_dir }} + + - name: Zip sitemap + uses: vimtor/action-zip@v1 + with: + files: ${{ inputs.sitemap_dir }} + dest: sitemap.zip + + - name: Archive Sitemap + uses: actions/upload-artifact@v3 + with: + name: sitemap + path: sitemap.zip