From 7bbe87987b75dadbefc5cd7496ef4b9ad94d4ab0 Mon Sep 17 00:00:00 2001 From: Leaflet Date: Sun, 25 Jan 2026 20:34:36 +0800 Subject: [PATCH 1/3] Update workflow --- .github/workflows/docker-publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 1a674df..e380865 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -60,6 +60,8 @@ jobs: context: . file: ./Dockerfile/dockerfile.bbsd push: true + provenance: true + sbom: true tags: | ${{ env.BBSD_IMAGE }}:${{ github.ref_name }} ${{ env.BBSD_IMAGE }}:latest From c9357ff1a5a355807bb7cb687509499f57bddcd8 Mon Sep 17 00:00:00 2001 From: Leaflet Date: Wed, 28 Jan 2026 21:45:02 +0800 Subject: [PATCH 2/3] Update workflows --- .github/workflows/build-release.yml | 50 ++++++++++++++++++++++++++++ .github/workflows/docker-image.yml | 4 ++- .github/workflows/docker-publish.yml | 5 +-- .github/workflows/makefile.yml | 7 ++-- 4 files changed, 61 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build-release.yml diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 0000000..426f034 --- /dev/null +++ b/.github/workflows/build-release.yml @@ -0,0 +1,50 @@ +name: Build and Release + +on: + push: + tags: + - "v*.*.*" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + + runs-on: ubuntu-latest + + permissions: + contents: write # Allows the action to create and write to the release + + steps: + - uses: actions/checkout@v4 + + - name: autogen + run: autoreconf --install --force + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y libssh-dev libsystemd-dev + + - name: configure + run: ./configure + + - name: Run make + run: make + + - name: Run check + run: make check + + - name: Run distcheck + run: make distcheck + + - name: Create Release and Upload Assets + uses: softprops/action-gh-release@v2 + with: + draft: true + prerelease: true + files: | + lbbs-*.tar.gz + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index b9c32b6..3addb56 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -2,7 +2,9 @@ name: Docker Image CI on: push: - branches: [ "main" ] + branches: + - "main" + - "v*.*" concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index e380865..41f7cc2 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -10,8 +10,9 @@ name: Publish Docker image on: - release: - types: [published] + push: + tags: + - "v*.*.*" concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index ff7e6bf..9ed3d8f 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -2,9 +2,12 @@ name: Makefile CI on: push: - branches: [ "v1.7" ] + branches: + - "main" + - "v*.*" pull_request: - branches: [ "v1.7" ] + branches: + - "main" concurrency: group: ${{ github.workflow }}-${{ github.ref }} From 093bbe8d2501be81258812ecc0178c92c4eac080 Mon Sep 17 00:00:00 2001 From: Leaflet Date: Wed, 28 Jan 2026 22:00:23 +0800 Subject: [PATCH 3/3] Use default github token --- .github/workflows/build-release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 426f034..6f8b1d2 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -47,4 +47,3 @@ jobs: prerelease: true files: | lbbs-*.tar.gz - token: ${{ secrets.GITHUB_TOKEN }}