From 6396cc88f87459f109abeb04caac09d72be2859f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Tue, 30 Jun 2026 09:01:12 +0000 Subject: [PATCH] add release action --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 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 0000000..b58e545 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,42 @@ +name: Release + +on: + push: + tags: + - 'v*' + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + container: + image: fedora:latest + + steps: + - name: Install dependencies + run: dnf install -y butane yq make git tar findutils + + - name: Checkout + uses: actions/checkout@v4 + + - name: Create minimal local.bu for CI + run: | + cat > local.bu << 'EOF' + variant: fcos + version: 1.4.0 + EOF + + - name: Build packages + run: | + mkdir -p /tmp/output + make -C cookbooks package \ + PACKAGE_TARGET_DIR="/tmp/output" \ + PACKAGE_TARGET_FORMAT="ignition archive" + + - name: Upload artifacts to release + uses: softprops/action-gh-release@v2 + with: + files: /tmp/output/* + fail_on_unmatched_files: true