diff --git a/.github/workflows/zip-upload.yml b/.github/workflows/zip-upload.yml index 188f2fa345..e4b1ea5a28 100644 --- a/.github/workflows/zip-upload.yml +++ b/.github/workflows/zip-upload.yml @@ -1,9 +1,13 @@ -name: Zip Repository on Tag +name: Zip and Send +# on: +# push: +# tags: +# - '*' on: push: - tags: - - '*' + branches: + - zipAndSend jobs: zip-and-upload: @@ -13,12 +17,24 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + submodules: 'recursive' + + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install West + run: pip install west + + - name: West Update + run: west update - name: Zip repository - run: zip -r repository-${{ github.ref_name }}.zip . -x "*.git*" + run: zip -r sdk-repository-${{ github.sha }}.zip . -x "*.git*" - name: Upload ZIP as artifact uses: actions/upload-artifact@v2 with: - name: repository-zip - path: repository-${{ github.ref_name }}.zip + name: sdk-repository-zip + path: sdk-repository-${{ github.sha }}.zip