Skip to content

Commit

Permalink
Merge pull request #27 from dhruveshb-mecha/dev-packages-v1
Browse files Browse the repository at this point in the history
ci: u-boot release fix
  • Loading branch information
dhruveshb-mecha authored Aug 12, 2024
2 parents 598dee8 + 1d69d2c commit de5a6c7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/uboot-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Uboot-build

on:
push:
branches:
Expand Down Expand Up @@ -56,9 +57,11 @@ jobs:
ls -laR build/deploy
- name: Prepare Uboot artifacts
id: prepare_artifacts
run: |
mkdir artifacts
VERSION=$(nu -c "open uboot/machines/${{ matrix.machine }}.yml | get version")
echo "VERSION=${VERSION}" >> $GITHUB_ENV
for file in build/deploy/u-boot/*; do
base=$(basename "$file")
mv "$file" "artifacts/${base%.bin}-v${VERSION}.bin"
Expand All @@ -77,7 +80,7 @@ jobs:
- name: Create Tag
id: create_tag
run: |
VERSION=$(nu -c "open uboot/machines/${{ matrix.machine }}.yml | get version")
VERSION=${{ env.VERSION }}
git config user.name "github-actions"
git config user.email "[email protected]"
git tag -a "v${VERSION}" -m "Release version ${VERSION}"
Expand All @@ -86,10 +89,8 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.prepare_artifacts.outputs.version }}
name: Release v${{ steps.prepare_artifacts.outputs.version }}
body: "Automatic release of version ${{ steps.prepare_artifacts.outputs.version }}"
tag_name: v${{ env.VERSION }}
name: Release v${{ env.VERSION }}
body: "Automatic release of version ${{ env.VERSION }}"
files: |
artifacts/*
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
artifacts/*

0 comments on commit de5a6c7

Please sign in to comment.