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