diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000000..b92d086860e5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +--- +# https://docs.corelightning.org/docs/repro +name: "Release 🚀" +on: + push: + # TODO: Remove after testing. + branches: + - 7776-release-builds-automation + tags: + - 'v[0-9]+.[0-9]+' + - 'v[0-9]+.[0-9]+.[0-9]+' + - 'v[0-9]+.[0-9]+[0-9a-z]+' + workflow_dispatch: + +jobs: + ubuntu-noble: + name: Release + runs-on: ubuntu-24.04 + steps: + - name: Git checkout + uses: actions/checkout@v4 + + # tools/build-release.sh requires lowdown + - name: Prepare base environment + run: | + sudo apt-get install -y lowdown + ./configure + + - name: Build environment setup + run: contrib/cl-repro.sh + + - name: Build release + # TODO: Remove forced version after testing. + run: FORCE_VERSION="24.08.2" tools/build-release.sh bin-Fedora-28-amd64 bin-Ubuntu sign + + - name: List release directory + run: ls -alh release/ diff --git a/tools/build-release.sh b/tools/build-release.sh index 610061ed6371..0924ff675f84 100755 --- a/tools/build-release.sh +++ b/tools/build-release.sh @@ -158,7 +158,7 @@ for target in $TARGETS; do # Capitalize the first letter of distro D=$(echo "$d" | awk '{print toupper(substr($0,1,1))substr($0,2)}') echo "Building Ubuntu $D Image" - docker run --rm -v "$(pwd)":/repo -e FORCE_MTIME="$MTIME" -e FORCE_VERSION="$VERSION" -ti cl-repro-"$d" + docker run --rm -v "$(pwd)":/repo -e FORCE_MTIME="$MTIME" -e FORCE_VERSION="$VERSION" cl-repro-"$d" echo "Ubuntu $D Image Built" done ;;