Skip to content

Commit

Permalink
Merge pull request #15 from Rovel/add-artifacts
Browse files Browse the repository at this point in the history
add steps to manually change bin name
  • Loading branch information
Rovel authored Feb 20, 2024
2 parents 7ed34dd + b731ecd commit 7a9bbd3
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,35 @@ jobs:
with:
path: target
- name: Display structure of downloaded files
run: ls -R
run: ls -
- name: Rename binaries
run: |
for dir in */ ; do
if [ -d "$dir" ]; then
base=$(basename "$dir")
mv "${dir%/}/image_cleaner" "${dir%/}/${dir%/}" # Rename binary to match directory name
fi
done
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare artifact paths
id: prep
run: |
artifacts=""
for dir in */ ; do
if [ -d "$dir" ]; then
artifacts="${artifacts},${dir%/}/${dir%/}" # Append the new binary path
fi
done
artifacts=${artifacts:1} # Remove leading comma
echo "::set-output name=artifacts::$artifacts"
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
artifacts: |
target/*
artifacts: ${{ steps.prep.outputs.artifacts }}
body: ${{ steps.tag_version.outputs.changelog }}

0 comments on commit 7a9bbd3

Please sign in to comment.