Skip to content

Commit 29bb550

Browse files
committed
Always upload artifacts
1 parent d1a1835 commit 29bb550

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/cicd.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
uses: actions/checkout@v4
1616
with:
1717
path: meta-nao
18+
- name: Extract the version
19+
run: echo "version=$(grep -P 'DISTRO_VERSION\s*=\s*".+"' meta-nao/meta-hulks/conf/distro/HULKs-OS.conf | cut -d\" -f2)" >> $GITHUB_ENV
1820
- name: Checkout Yocto layers
1921
run: kas checkout meta-nao/kas/base.yml:meta-nao/kas/hulks.yml
2022
- name: Populate aldebaran_binaries.tar.gz
@@ -27,13 +29,12 @@ jobs:
2729
run: kas build --target nao-image --cmd populate_sdk meta-nao/kas/base.yml:meta-nao/kas/hulks.yml:meta-nao/kas/aarch64.yml
2830
- name: Upload artifacts
2931
uses: actions/upload-artifact@v4
30-
if: startsWith(github.ref, 'refs/tags/')
3132
with:
3233
name: all
3334
path: |
34-
build/tmp/deploy/images/nao-v6/nao-image-HULKs-OS-${{ github.ref_name }}.ext3.gz.opn
35-
build/tmp/deploy/sdk/HULKs-OS-x86_64-toolchain-${{ github.ref_name }}.sh
36-
build/tmp/deploy/sdk/HULKs-OS-aarch64-toolchain-${{ github.ref_name }}.sh
35+
build/tmp/deploy/images/nao-v6/nao-image-HULKs-OS-${{ env.version }}.ext3.gz.opn
36+
build/tmp/deploy/sdk/HULKs-OS-x86_64-toolchain-${{ env.version }}.sh
37+
build/tmp/deploy/sdk/HULKs-OS-aarch64-toolchain-${{ env.version }}.sh
3738
release:
3839
name: Release
3940
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)