|
59 | 59 | run: |
|
60 | 60 | ls -lah /cygdrive/c/
|
61 | 61 | ls -lah /cygdrive/d/
|
62 |
| -
|
63 | 62 | cp -f /cygdrive/c/setup.exe /cygdrive/c/cygwin/bin/setup-x86_64.exe
|
64 |
| -
|
65 | 63 | bash ./sapi/scripts/cygwin/install-cygwin.sh
|
66 | 64 |
|
67 | 65 | - name: Install Cygwin Packages
|
@@ -135,8 +133,30 @@ jobs:
|
135 | 133 |
|
136 | 134 | - name: gh release
|
137 | 135 | uses: softprops/action-gh-release@v2
|
138 |
| - if: startsWith(github.ref, 'refs/tags/') |
| 136 | + if: ${{ startsWith(github.ref, 'refs/tags/') }} |
139 | 137 | env:
|
140 | 138 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
141 | 139 | with:
|
142 | 140 | files: swoole-cli-v${{ env.APP_VERSION }}-cygwin-x64.zip
|
| 141 | + |
| 142 | + upload-to-cloud-object-storage: |
| 143 | + if: 1 |
| 144 | + runs-on: ubuntu-latest |
| 145 | + needs: windows-cygwin |
| 146 | + steps: |
| 147 | + - name: Prepare Run Environment |
| 148 | + run: |
| 149 | + sudo apt install -y curl |
| 150 | + - uses: actions/checkout@v4 |
| 151 | + - uses: actions/download-artifact@v4 |
| 152 | + - name: upload artifacts to cloud object storage |
| 153 | + if: ${{ (github.repository == 'swoole/swoole-cli') && (startsWith(github.ref, 'refs/tags/')) }} |
| 154 | + env: |
| 155 | + OSS_SECRET_ID: ${{ secrets.QCLOUD_OSS_SECRET_ID }} |
| 156 | + OSS_SECRET_KEY: ${{ secrets.QCLOUD_OSS_SECRET_KEY }} |
| 157 | + OSS_BUCKET: ${{ vars.QCLOUD_OSS_BUCKET }} |
| 158 | + OSS_REGION: ${{ vars.QCLOUD_OSS_REGION }} |
| 159 | + run: | |
| 160 | + FILE_NAME=$(ls -d swoole-cli-v*-cygwin-x64) |
| 161 | + FILE="${{ github.workspace }}/${FILE_NAME}/${FILE_NAME}.zip" |
| 162 | + bash sapi/scripts/tencent-cloud-object-storage.sh --upload-file ${FILE} |
0 commit comments