Skip to content

Commit

Permalink
Merge pull request #7 from maxisoft/dev
Browse files Browse the repository at this point in the history
feat: add 7-Zip compression with password protection for kernels arti…
  • Loading branch information
maxisoft authored Jul 27, 2024
2 parents caa9e8e + c801128 commit ab92dab
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/doit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,28 @@ jobs:
run: |
python main.py
- uses: milliewalky/setup-7-zip@v1

- name: ReZip kernels
if: ${{ github.actor == github.repository_owner && secrets.ARCHIVE_PASSWORD }}
run: |
mkdir -p tmp
7z x kernels.zip -otmp
7z a -t7z -mx=9 -p"${{ secrets.ARCHIVE_PASSWORD }}" kernels.7z tmp/*
- name: Cleanup
if: ${{ always() }}
run: |
rm -rf tmp || :
rm -rf kernels.zip || :
exit 0
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: kernels
path: kernels.zip
path: kernels.7z
if-no-files-found: error
retention-days: 90

0 comments on commit ab92dab

Please sign in to comment.