From 54d042ac56f345844f123c25612e9d097cac3222 Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Sat, 28 May 2022 17:40:33 -0400 Subject: [PATCH] deployment: deletes the debian folder in case of unwanted leftover files (#740) Deletes the generated debian folder in nightly/deploy workflows, as I don't want to cache it. --- .github/workflows/deployment.yml | 6 +++++- .github/workflows/nightly.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 6906f15c..d24a7607 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -343,7 +343,6 @@ jobs: use-cross: ${{ matrix.tuple.cross }} - name: Zip manpage - shell: bash run: | gzip ./manpage/btm.1 @@ -366,6 +365,11 @@ jobs: dpkg -I ./bottom_${{ matrix.tuple.target }}.deb dpkg -I ./bottom_${{ matrix.tuple.target }}.deb | grep ${{ matrix.tuple.dpkg }} && echo "Found correct architecture" + - name: Delete generated Debian folder + run: | + sudo chown $USER ./target/${{ matrix.tuple.target }}/debian/ 2>/dev/null || true + rm -r ./target/${{ matrix.tuple.target }}/debian/ + - name: Create release directory for artifact, move file shell: bash run: | diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index fdbf1ce4..430873eb 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -337,7 +337,6 @@ jobs: use-cross: ${{ matrix.tuple.cross }} - name: Zip manpage - shell: bash run: | gzip ./manpage/btm.1 @@ -360,6 +359,11 @@ jobs: dpkg -I ./bottom_${{ matrix.tuple.target }}.deb dpkg -I ./bottom_${{ matrix.tuple.target }}.deb | grep ${{ matrix.tuple.dpkg }} && echo "Found correct architecture" + - name: Delete generated Debian folder + run: | + sudo chown $USER ./target/${{ matrix.tuple.target }}/debian/ 2>/dev/null || true + rm -r ./target/${{ matrix.tuple.target }}/debian/ + - name: Create release directory for artifact, move file shell: bash run: |