mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
has to clean destination when bottling too.
This commit is contained in:
parent
ec2d3130b2
commit
e59e13ca08
1 changed files with 11 additions and 0 deletions
11
.github/workflows/bottle.yml
vendored
11
.github/workflows/bottle.yml
vendored
|
@ -52,6 +52,17 @@ jobs:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
|
- name: clean destination
|
||||||
|
# Note: needed when changing a directory to a symlink, for example in
|
||||||
|
# https://github.com/teaxyz/pantry.extra/pull/435
|
||||||
|
run: |
|
||||||
|
tar tzf $GITHUB_WORKSPACE/artifacts.tgz | \
|
||||||
|
awk '{ print length, $0 }' | \
|
||||||
|
sort -n -s -r | \
|
||||||
|
cut -d" " -f2- | \
|
||||||
|
xargs rm -rf
|
||||||
|
working-directory: ${{ steps.tea.outputs.prefix }}
|
||||||
|
|
||||||
- run: tar xzvf $GITHUB_WORKSPACE/artifacts.tgz
|
- run: tar xzvf $GITHUB_WORKSPACE/artifacts.tgz
|
||||||
working-directory: ${{ steps.tea.outputs.prefix }}
|
working-directory: ${{ steps.tea.outputs.prefix }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue