Skip to content

Commit

Permalink
Add libimageflow.a to github release
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Jan 22, 2025
1 parent 2c06529 commit 4c2b065
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -395,15 +395,19 @@ jobs:
env STATIC_ARCHIVE_1 = "/static/${{ matrix.target }}/latest/${{ env.LIBIMAGEFLOW_STATIC }}.${{ env.EXTENSION }}"
env STATIC_ARCHIVE_2 = "/static/${{ matrix.target }}/releases/${{ github.ref_name }}/${{ env.LIBIMAGEFLOW_STATIC }}.${{ env.EXTENSION }}"
env STATIC_ARCHIVE_3 = "/static/${{ matrix.target }}/commits/${{ github.sha }}/${{ matrix.commit-suffix }}.${{ env.EXTENSION }}"
env STATIC_ARCHIVE_GITHUB = "./artifacts/github/lib${{ env.IMAGEFLOW_TAG_SHA_SUFFIX }}-${{ matrix.commit-suffix }}.${{ env.LIBIMAGEFLOW_STATIC }}.${{ env.EXTENSION }}"
mkdir -p $(dirname $STATIC_UPLOAD_DIR$STATIC_ARCHIVE_1)
mkdir -p $(dirname $STATIC_UPLOAD_DIR$STATIC_ARCHIVE_2)
mkdir -p $(dirname $STATIC_UPLOAD_DIR$STATIC_ARCHIVE_3)
cp $TEMP_STATIC_ARCHIVE $STATIC_UPLOAD_DIR$STATIC_ARCHIVE_1
cp $TEMP_STATIC_ARCHIVE $STATIC_UPLOAD_DIR$STATIC_ARCHIVE_2
mv $TEMP_STATIC_ARCHIVE $STATIC_UPLOAD_DIR$STATIC_ARCHIVE_3
cp $TEMP_STATIC_ARCHIVE $STATIC_UPLOAD_DIR$STATIC_ARCHIVE_3
mv $TEMP_STATIC_ARCHIVE $STATIC_ARCHIVE_GITHUB
echo "Uploaded static archive to ${{ env.HTTPS_IMAGEFLOW_NIGHTLIES }}$STATIC_UPLOAD_DIR$STATIC_ARCHIVE_1"
echo "Uploaded static archive to ${{ env.HTTPS_IMAGEFLOW_NIGHTLIES }}$STATIC_UPLOAD_DIR$STATIC_ARCHIVE_2"
echo "Uploaded static archive to ${{ env.HTTPS_IMAGEFLOW_NIGHTLIES }}$STATIC_UPLOAD_DIR$STATIC_ARCHIVE_3"
echo "RELATIVE_GITHUB_ARCHIVE_STATIC=$STATIC_ARCHIVE_GITHUB" >> $GITHUB_ENV
)
else
echo "No static archive found at ${{ env.TEMP_STATIC_LIB }}"
Expand All @@ -426,7 +430,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: ${{ env.RELATIVE_GITHUB_ARCHIVE }}
file: "${{ env.RELATIVE_GITHUB_ARCHIVE }}${{ env.RELATIVE_GITHUB_ARCHIVE_STATIC && format(';{0}', env.RELATIVE_GITHUB_ARCHIVE_STATIC) }}"
tags: true
overwrite: true
verbose: true
Expand Down

0 comments on commit 4c2b065

Please sign in to comment.