diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 51e90bfa4..461e0be5d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,8 @@ on: jobs: release: runs-on: ubuntu-20.04 + container: + image: buildpack-deps:bullseye-scm steps: - uses: actions/checkout@v2 - run: echo "::set-output name=VERSION::${GITHUB_REF#refs/tags/}" @@ -17,12 +19,13 @@ jobs: notes="${notes//$'\r'/'%0D'}" echo ::set-output name=NOTES::$notes id: notes + shell: bash - run: '[ -n "${{ steps.notes.outputs.NOTES }}" ] || (echo "Failed to parse changelog" && exit 1)' - run: grep --quiet '^AC_INIT(\[blueman\], \[${{ steps.version.outputs.VERSION }}\]' configure.ac || (echo "Did not find expected verson in configure.ac" && exit 1) - run: "grep --quiet \"version: '${{ steps.version.outputs.VERSION }}'\" meson.build || (echo 'Did not find expected verson in meson.build' && exit 1)" - run: git archive --prefix="blueman-${{ steps.version.outputs.VERSION }}/" HEAD | tar x - - run: sudo apt-get update - - run: sudo apt-get install -y -qq --no-install-recommends autopoint + - run: apt-get update + - run: apt-get install -y -qq --no-install-recommends autopoint automake libtool pkg-config - run: NOCONFIGURE=1 ./autogen.sh working-directory: "blueman-${{ steps.version.outputs.VERSION }}" - run: tar cJf "blueman-${{ steps.version.outputs.VERSION }}.tar.xz" "blueman-${{ steps.version.outputs.VERSION }}"