Skip to content

Commit

Permalink
Merge pull request #3 from uit-no/fix-release-yml
Browse files Browse the repository at this point in the history
Fix release yml
  • Loading branch information
bjorgve authored Aug 25, 2023
2 parents 10a93ea + 6a45aee commit 7b19dff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ name: singularity-deploy

on:
push:
# This branch does not exist! You should update this to be your "production" branch
# and ensure that when you work on recipes you only merge to this branch when it's time to release
# You can also use another GitHub trigger entirely
branches:
- "main-branch"
- "main"

jobs:
release:
Expand Down Expand Up @@ -48,7 +45,7 @@ jobs:
run: |
repo=$(echo "${GITHUB_REPOSITORY/\//-}")
# For each Singularity* container, build based on the prefix (tag)
# For each Singularity* container, build based on the prefix (tag)
for recipe in $(ls Singularity*); do
echo "Building $recipe"
tag=$(echo "${recipe/Singularity\./}")
Expand All @@ -61,17 +58,17 @@ jobs:
container="$repo:$tag.sif"
singularity build --fakeroot container.sif "$recipe"
if [ "$?" == "0" ]; then
echo "Successfully built container $container."
echo "Successfully built container $container."
mv container.sif "$container"
else
echo "There was an issue building $container."
echo "There was an issue building $container."
fi
done
- name: Upload Release Assets
if: ${{ env.release_tag != env.latest_tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
tag_name: ${{ env.release_tag }}
run: |
hub release edit $(find . -type f -name "*.sif" -printf "-a %p ") -m "" "$tag_name"
hub release edit $(find . -type f -name "*.sif" -printf "-a %p ") -m "" "$tag_name"
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1
0.0.2

0 comments on commit 7b19dff

Please sign in to comment.