Skip to content

Commit

Permalink
fixup! WorkFlows: Pack and Send repository
Browse files Browse the repository at this point in the history
  • Loading branch information
jaci-nordic committed Mar 18, 2024
1 parent 2f28d78 commit 466a22d
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/zip-upload.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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

0 comments on commit 466a22d

Please sign in to comment.