add lfs tracking, add job dependency

This commit is contained in:
ahuston-0 2025-05-26 16:19:22 -04:00
parent 285f71e8a3
commit ea1c07ffc4
No known key found for this signature in database
GPG Key ID: 47940175096C1330
2 changed files with 7 additions and 7 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
nix-installer-x86_64-linux filter=lfs diff=lfs merge=lfs -text

View File

@ -33,35 +33,35 @@ jobs:
binary_name=$(echo $final_url | sed -E -e 's/.*\/(.*)/\1/g')
echo "DETERMINATE_BINARY=$(echo $binary_name)" | tee -a $GITHUB_ENV
- name: Download binary
id: download-binary
run: |
wget --content-disposition -nv "$DETERMINATE_URL"
git diff --quiet
echo "DETERMINATE_BINARY_DIFF=$?" | tee -a "$GITHUB_OUTPUTS"
echo "DETERMINATE_BINARY_DIFF=$?" | tee -a "$GITHUB_OUTPUT"
env:
DETERMINATE_URL: ${{ env.DETERMINATE_URL }}
commit-data:
runs-on: ubuntu-latest
needs: download-binary
if: download-binary.outputs.DETERMINATE_BINARY_DIFF != 0
steps:
- name: Git config
if: steps.download-binary.outputs.DETERMINATE_BINARY_DIFF != 0
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Commit binary
if: steps.download-binary.outputs.DETERMINATE_BINARY_DIFF != 0
run: |
git add .
git commit -m "automated download workflow"
commit_id=$(git rev-parse HEAD)
echo "COMMIT_ID=$(echo $commit_id)" >> $GITHUB_ENV
- name: Tag new target
if: steps.download-binary.outputs.DETERMINATE_BINARY_DIFF != 0
run: |
git tag -f "$DETERMINATE_VERSION" "$COMMIT_ID"
env:
DETERMINATE_VERSION: ${{ env.DETERMINATE_VERSION }}
COMMIT_ID: ${{ env.COMMIT_ID }}
- name: Push new tag
if: steps.download-binary.outputs.DETERMINATE_BINARY_DIFF != 0
run: |
git push origin "$DETERMINATE_VERSION" --force
git checkout main
@ -70,7 +70,6 @@ jobs:
env:
DETERMINATE_VERSION: ${{ env.DETERMINATE_VERSION }}
- name: Publish release
if: steps.download-binary.outputs.DETERMINATE_BINARY_DIFF != 0
uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18