Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid root tmp directory in archive and improve step naming #15

Merged
merged 1 commit into from
Jul 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/doit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ jobs:
mkdir -p tmp
7z x kernels.zip -otmp
echo "- kernels.7z creation" > $GITHUB_STEP_SUMMARY
7z a -t7z -mx=9 -p"${{ secrets.ARCHIVE_PASSWORD }}" kernels.7z tmp/*
pushd tmp
7z a -t7z -m0=lzma2 -mx=6 -mhe=on -ms=on -p"${{ secrets.ARCHIVE_PASSWORD }}" kernels.7z *
popd
echo "archive_created=true" >> $GITHUB_ENV
echo "- kernels.7z has been created" > $GITHUB_STEP_SUMMARY
rm -rf tmp || :
Expand All @@ -101,7 +103,8 @@ jobs:
if-no-files-found: error
retention-days: 90

- if: ${{ github.actor == github.repository_owner }}
- name: Prepare remote git push
if: ${{ github.actor == github.repository_owner }}
run: |
if [ -z "${{ secrets.SSH_DEPLOY_KEY }}" ]; then
echo "- SSH_DEPLOY_KEY secret is not set" >> $GITHUB_STEP_SUMMARY
Expand Down
Loading