From 088f6433684b1925f6938fe1cf7d15ce5163e9e0 Mon Sep 17 00:00:00 2001 From: Se7enZ Date: Tue, 5 Nov 2024 17:12:48 +0100 Subject: [PATCH] build: Release build automation ([#7776]). Changelog-None --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000000..43ba3b07955e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +--- +# 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 ./configure --reconfigure + - name: Prepare base environment + run: ./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/