Skip to content

Commit

Permalink
Tag release with build number
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Aug 24, 2023
1 parent 5bf20af commit e202b6c
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,23 @@ jobs:
# -rw-rw-rw-+ 1 runner docker 159384064 Aug 24 03:14 sdcard.img
# -rw-r--r--+ 1 runner docker 6762552 Aug 24 02:41 zImage

# https://github.com/softprops/action-gh-release
# - name: Release
# uses: softprops/action-gh-release@v1
# with:
# files: /opt/firmware/sdcard.img
- name: Create build number
run: |
BUILD_TAG="${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
echo "${BUILD_TAG}"
echo "BUILD_TAG=${BUILD_TAG} >> $GITHUB_ENV
- name: Tag build
run: |
git tag $BUILD_TAG
git push origin $BUILD_TAG
- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ env.BUILD_TAG }}
files: /opt/buildroot/output/images/sdcard.img

# https://github.com/marketplace/actions/create-release

Expand Down

0 comments on commit e202b6c

Please sign in to comment.