From d622a12101e2572a742058a44b00f0640a139b59 Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Fri, 13 Feb 2026 13:21:25 +0800 Subject: [PATCH] Enhance release-build.yml with release deployment step Added a deployment step for release tags to the self-hosted OSS workflow. --- .github/workflows/release-build.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index aaeee1ff..9686381a 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -120,7 +120,7 @@ jobs: with: files: dist/${{ matrix.operating-system.filename }} - - name: "Deploy to self-hosted OSS" + - name: "Deploy to self-hosted OSS (nightly)" # only run this step if the repository is static-php-cli and the branch is main if: github.repository == 'crazywhalecc/static-php-cli' && github.ref == 'refs/heads/main' uses: static-php/upload-s3-action@v1.0.0 @@ -132,6 +132,18 @@ jobs: destination_dir: static-php-cli/spc-bin/nightly/ endpoint: ${{ secrets.AWS_ENDPOINT }} + - name: "Deploy to self-hosted OSS (release)" + # only run this step if the repository is static-php-cli and release tag + if: github.repository == 'crazywhalecc/static-php-cli' && startsWith(github.ref, 'refs/tags/') + uses: static-php/upload-s3-action@v1.0.0 + with: + aws_key_id: ${{ secrets.AWS_KEY_ID }} + aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws_bucket: ${{ secrets.AWS_BUCKET }} + source_dir: "dist/" + destination_dir: static-php-cli/spc-bin/${{ github.event.release.tag_name }}/ + endpoint: ${{ secrets.AWS_ENDPOINT }} + - name: "Upload Artifact" uses: actions/upload-artifact@v4 with: