Skip to content

Commit 39f1cfd

Browse files
committed
ci: drop version as git describe does not work in pipeline
branch name is already in release name and git hash is already added
1 parent b2d285e commit 39f1cfd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ jobs:
3030
- name: Setup env
3131
run: |
3232
echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV
33-
echo "VER=$(git describe)_armhf" >> $GITHUB_ENV
3433
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
3534
- name: Print env
3635
run: |
37-
echo $BRANCH $VER $DT
36+
echo $BRANCH $DT
3837
3938
- name: build for armhf (bpi-r2)
4039
run: |
@@ -49,7 +48,7 @@ jobs:
4948
# It is recommended to create the access token with the following scopes: `repo, user, admin:repo_hook`.
5049
repo_token: ${{ secrets.GITHUB_TOKEN }}
5150
file: rootfs*.cpio.*
52-
tag: "CI-BUILD-${{ env.BRANCH }}-${{ env.VER }}-${{ env.DT }}"
51+
tag: "CI-BUILD-${{ env.BRANCH }}-armhf-${{ env.DT }}"
5352
overwrite: true
5453
body: "release for armhf"
5554
file_glob: true
@@ -68,11 +67,10 @@ jobs:
6867
- name: Setup env
6968
run: |
7069
echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV
71-
echo "VER=$(git describe)_arm64" >> $GITHUB_ENV
7270
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
7371
- name: Print env
7472
run: |
75-
echo $BRANCH $VER $DT
73+
echo $BRANCH $DT
7674
7775
- name: build for aarch64 (bpi-r64/bpi-r3/bpi-r4)
7876
run: |
@@ -89,7 +87,7 @@ jobs:
8987
# It is recommended to create the access token with the following scopes: `repo, user, admin:repo_hook`.
9088
repo_token: ${{ secrets.GITHUB_TOKEN }}
9189
file: rootfs*.cpio.*
92-
tag: "CI-BUILD-${{ env.BRANCH }}-${{ env.VER }}-${{ env.DT }}"
90+
tag: "CI-BUILD-${{ env.BRANCH }}-arm64-${{ env.DT }}"
9391
overwrite: true
9492
body: "release for arm64 (bpi-r64/r2pro/r3/r4)"
9593
file_glob: true

0 commit comments

Comments
 (0)