Skip to content

Commit 80c1acb

Browse files
JashBookwangyelei
authored andcommitted
chore: fix release no space left on device (#640)
1 parent 4af2763 commit 80c1acb

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/release-kbcli.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ jobs:
4040
name: Upload and release kbcli
4141
runs-on: ubuntu-22.04
4242
steps:
43+
- name: Free disk space
44+
run: |
45+
df -h
46+
echo "free disk space"
47+
sudo apt-get autoremove -y >/dev/null 2>&1
48+
sudo apt-get autoclean -y >/dev/null 2>&1
49+
sudo rm -rf /usr/local/lib/android >/dev/null 2>&1
50+
docker rmi $(docker image ls -aq) >/dev/null 2>&1
51+
sudo swapoff -a
52+
sudo rm -f /swapfile
53+
df -h
54+
4355
- uses: actions/checkout@v4
4456
- name: install lib
4557
run: |
@@ -73,6 +85,7 @@ jobs:
7385

7486
- name: upload .rpm and .deb to fury.io
7587
run: |
88+
df -h
7689
for file in $(find "${{ github.workspace }}/dist" -type f | grep -E '\.(deb|rpm)$'); do
7790
echo "Processing file: $file"
7891
curl -F package=@$file https://${{ env.FURY_TOKEN }}@push.fury.io/${{ env.FURY_ACCOUNT }}/

0 commit comments

Comments
 (0)