Skip to content

Commit

Permalink
ci: πŸš€ Remove large files from release
Browse files Browse the repository at this point in the history
following @WASasquatch advice
  • Loading branch information
melMass committed Jul 24, 2023
1 parent 9a4eda3 commit 3b9190a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,28 @@ jobs:
with:
submodules: "recursive"
path: ${{ env.repo_name }}

# - name: πŸ“ Prepare file with paths to remove
# run: |
# find ${{ env.repo_name }} -type f -size +10M > .release_ignore
# find ${{ env.repo_name }} -type d -empty >> .release_ignore
# shell: bash

- name: πŸ—‘οΈ Remove files and directories listed in .release_ignore
shell: bash
run: |
if [ -f "${{ env.repo_name }}/.release_ignore" ]; then
while IFS= read -r entry; do
if [ -f "${{ env.repo_name }}/$entry" ]; then
rm "${{ env.repo_name }}/$entry"
elif [ -d "${{ env.repo_name }}/$entry" ]; then
rm -r "${{ env.repo_name }}/$entry"
fi
done < "${{ env.repo_name }}/.release_ignore"
else
echo "No .release_ignore file found. Skipping removal of files and directories."
fi
- name: πŸ“¦ Building custom comfy nodes
shell: bash
run: |
Expand Down
3 changes: 3 additions & 0 deletions .release_ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
extern/frame_interpolation/moment.gif
extern/frame_interpolation/photos
extern/GFPGAN/inputs

0 comments on commit 3b9190a

Please sign in to comment.