Skip to content

Commit 56df16c

Browse files
committed
chore: fix release no space left on device (#640)
(cherry picked from commit 6a74d0f)
1 parent e5a4570 commit 56df16c

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
@@ -38,6 +38,18 @@ jobs:
3838
name: Upload and release kbcli
3939
runs-on: ubuntu-22.04
4040
steps:
41+
- name: Free disk space
42+
run: |
43+
df -h
44+
echo "free disk space"
45+
sudo apt-get autoremove -y >/dev/null 2>&1
46+
sudo apt-get autoclean -y >/dev/null 2>&1
47+
sudo rm -rf /usr/local/lib/android >/dev/null 2>&1
48+
docker rmi $(docker image ls -aq) >/dev/null 2>&1
49+
sudo swapoff -a
50+
sudo rm -f /swapfile
51+
df -h
52+
4153
- uses: actions/checkout@v4
4254
- name: install lib
4355
run: |
@@ -70,6 +82,7 @@ jobs:
7082

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

0 commit comments

Comments
 (0)