mirror of
https://github.com/EasyTier/EasyTier.git
synced 2024-11-16 11:42:27 +08:00
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:
parent
3a5332e31d
commit
714667fdce
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user