From 714667fdce17bec35e0aeafc79990ba0ee5fce2c Mon Sep 17 00:00:00 2001 From: "Sijie.Sun" Date: Sun, 5 May 2024 11:06:39 +0800 Subject: [PATCH] Update rust.yml (#76) fix [PR from fork cannot use github secret directly](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow) --- .github/workflows/rust.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4e347c3c..376c83fd 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -47,6 +47,7 @@ jobs: TARGET: ${{ matrix.TARGET }} OS: ${{ matrix.OS }} GUI_TARGET: ${{ matrix.GUI_TARGET }} + OSS_BUCKET: ${{ secrets.ALIYUN_OSS_BUCKET }} steps: - uses: actions/checkout@v3 - name: Setup protoc @@ -225,6 +226,7 @@ jobs: path: | ./artifacts/* - name: Upload OSS + if: ${{ env.OSS_BUCKET != '' }} uses: Menci/upload-to-oss@main with: access-key-id: ${{ secrets.ALIYUN_OSS_ACCESS_ID }}