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)
This commit is contained in:
Sijie.Sun 2024-05-05 11:06:39 +08:00 committed by GitHub
parent 3a5332e31d
commit 714667fdce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,6 +47,7 @@ jobs:
TARGET: ${{ matrix.TARGET }} TARGET: ${{ matrix.TARGET }}
OS: ${{ matrix.OS }} OS: ${{ matrix.OS }}
GUI_TARGET: ${{ matrix.GUI_TARGET }} GUI_TARGET: ${{ matrix.GUI_TARGET }}
OSS_BUCKET: ${{ secrets.ALIYUN_OSS_BUCKET }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup protoc - name: Setup protoc
@ -225,6 +226,7 @@ jobs:
path: | path: |
./artifacts/* ./artifacts/*
- name: Upload OSS - name: Upload OSS
if: ${{ env.OSS_BUCKET != '' }}
uses: Menci/upload-to-oss@main uses: Menci/upload-to-oss@main
with: with:
access-key-id: ${{ secrets.ALIYUN_OSS_ACCESS_ID }} access-key-id: ${{ secrets.ALIYUN_OSS_ACCESS_ID }}