From 509aeeddb6842b56c150184d7168976c73247715 Mon Sep 17 00:00:00 2001 From: Martin Wimpress <304639+flexiondotorg@users.noreply.github.com> Date: Thu, 9 Nov 2023 09:16:20 +0000 Subject: [PATCH] refactor(ci): simplify the build-release step --- .github/workflows/publish-release.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 30fa783f5..b9c09de02 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -22,20 +22,16 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - - name: Build .deb + - name: Build and Upload .deb + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | sudo apt-get -y update sudo apt-get -y install debhelper devscripts REL_VER=$(grep "^readonly VERSION" deb-get | cut -d'"' -f2) dch -v "${REL_VER}-1" --distribution=unstable "New upstream release." dpkg-buildpackage --build=binary --no-check-builddeps --compression=gzip - - name: Upload .deb - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - for artefact in "../"*_all.deb; do - gh release upload "${{ github.ref }}" "${artefact}" --clobber - done + gh release upload "${{ github.ref }}" "../deb-get_${REL_VER}-1_all.deb" --clobber publish-release: name: Publish Release