From d7f34505ecbfdaa2e60fc7258b284e5c7c7d1a68 Mon Sep 17 00:00:00 2001 From: ospab Date: Thu, 14 May 2026 23:18:21 +0300 Subject: [PATCH] CI/CD: Fully bulletproof GHA YAML syntax & broaden triggers to master branch for immediate real-time execution --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1169d49..d8cdb54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,8 @@ name: Universal CI/CD Release Matrix on: push: + branches: + - "master" tags: - "v*" workflow_dispatch: @@ -113,20 +115,20 @@ jobs: run: cargo build --release --target ${{ matrix.target }} --bin ostp - name: Execute Specialized Cross-Compilation - if: matrix.use_cross + if: ${{ matrix.use_cross }} run: | cargo install cross --git https://github.com/cross-rs/cross.git cross build --release --target ${{ matrix.target }} --bin ostp - name: Package release artifact (Windows) - if: matrix.os == 'windows-latest' + if: ${{ matrix.os == 'windows-latest' }} shell: pwsh run: | cd target/${{ matrix.target }}/release Compress-Archive -Path ${{ matrix.artifact_name }} -DestinationPath ../../../${{ matrix.release_name }} - name: Package release artifact (Unix Systems) - if: matrix.os != 'windows-latest' + if: ${{ matrix.os != 'windows-latest' }} run: | cd target/${{ matrix.target }}/release tar -czf ../../../${{ matrix.release_name }} ${{ matrix.artifact_name }}