Skip to content

Commit af7666c

Browse files
committed
Always upload artifacts
1 parent 8431665 commit af7666c

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
@@ -16,6 +16,8 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818
path: meta-nao
19+
- name: Extract the version
20+
run: echo "version=$(grep -P 'DISTRO_VERSION\s*=\s*".+"' meta-hulks/conf/distro/HULKs-OS.conf | cut -d\" -f2)" >> $GITHUB_ENV
1921
- name: Checkout Yocto layers
2022
run: kas checkout meta-nao/kas/base.yml:meta-nao/kas/hulks.yml
2123
- name: Populate aldebaran_binaries.tar.gz
@@ -28,13 +30,12 @@ jobs:
2830
run: kas build --target nao-image --cmd populate_sdk meta-nao/kas/base.yml:meta-nao/kas/hulks.yml:meta-nao/kas/aarch64.yml
2931
- name: Upload artifacts
3032
uses: actions/upload-artifact@v4
31-
if: startsWith(github.ref, 'refs/tags/')
3233
with:
3334
name: all
3435
path: |
35-
build/tmp/deploy/images/nao-v6/nao-image-HULKs-OS-${{ github.ref_name }}.ext3.gz.opn
36-
build/tmp/deploy/sdk/HULKs-OS-x86_64-toolchain-${{ github.ref_name }}.sh
37-
build/tmp/deploy/sdk/HULKs-OS-aarch64-toolchain-${{ github.ref_name }}.sh
36+
build/tmp/deploy/images/nao-v6/nao-image-HULKs-OS-${{ env.version }}.ext3.gz.opn
37+
build/tmp/deploy/sdk/HULKs-OS-x86_64-toolchain-${{ env.version }}.sh
38+
build/tmp/deploy/sdk/HULKs-OS-aarch64-toolchain-${{ env.version }}.sh
3839
release:
3940
name: Release
4041
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)