From fe3d16372d0372ac467e0a5245ba71128f22f9dd Mon Sep 17 00:00:00 2001 From: Martin Wimpress <304639+flexiondotorg@users.noreply.github.com> Date: Thu, 9 Nov 2023 09:04:38 +0000 Subject: [PATCH 1/3] fix(ci): invoke apt-get via sudo --- .github/workflows/publish-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index caecead6..30fa783f 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -24,8 +24,8 @@ jobs: - uses: actions/checkout@v4 - name: Build .deb run: | - apt-get -y update - apt-get -y install debhelper devscripts + 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 From 379469681f02441d3b2bc73ee694d9fe76e3fc48 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Nov 2023 09:05:27 +0000 Subject: [PATCH 2/3] build(deps): bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/tests-01-main.yml | 2 +- .github/workflows/tests-deb-get.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests-01-main.yml b/.github/workflows/tests-01-main.yml index d7f56fa8..940fdbfb 100644 --- a/.github/workflows/tests-01-main.yml +++ b/.github/workflows/tests-01-main.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/tests-deb-get.yml b/.github/workflows/tests-deb-get.yml index f399054f..d73a3889 100644 --- a/.github/workflows/tests-deb-get.yml +++ b/.github/workflows/tests-deb-get.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: | 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 3/3] 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 30fa783f..b9c09de0 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