mirror of
https://github.com/snltty/linker.git
synced 2025-12-19 09:56:46 +08:00
oss
This commit is contained in:
6
.github/workflows/dotnet.yml
vendored
6
.github/workflows/dotnet.yml
vendored
@@ -59,12 +59,12 @@ jobs:
|
|||||||
id: upload-win-x86-oss
|
id: upload-win-x86-oss
|
||||||
uses: tvrcgo/oss-action@v0.1.1
|
uses: tvrcgo/oss-action@v0.1.1
|
||||||
with:
|
with:
|
||||||
region: oss-cn-guangzhou
|
region: oss-cn-shenzhen
|
||||||
key-id: '${{ secrets.ALIYUN_OSS_ID }}'
|
key-id: '${{ secrets.ALIYUN_OSS_ID }}'
|
||||||
key-secret: '${{ secrets.ALIYUN_OSS_SECRET }}'
|
key-secret: '${{ secrets.ALIYUN_OSS_SECRET }}'
|
||||||
bucket: snltty
|
bucket: ide-qbcode
|
||||||
asset-path: ./public/publish-zip/linker-win-x86.zip
|
asset-path: ./public/publish-zip/linker-win-x86.zip
|
||||||
target-path: /linker/v1.2.0.6/linker-win-x86.zip
|
target-path: /downloads/linker/v1.2.0.6/linker-win-x86.zip
|
||||||
|
|
||||||
- name: upload win x86
|
- name: upload win x86
|
||||||
id: upload-win-x86
|
id: upload-win-x86
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ namespace linker.plugins.updater
|
|||||||
}
|
}
|
||||||
sb.Append(RuntimeInformation.ProcessArchitecture.ToString().ToLower());
|
sb.Append(RuntimeInformation.ProcessArchitecture.ToString().ToLower());
|
||||||
|
|
||||||
string url = $"http://gh.snltty.com:1808/https://github.com/snltty/linker/releases/download/{version}/{sb.ToString()}.zip";
|
string url = $"https://static.qbcode.cn/downloads/linker/{version}/{sb.ToString()}.zip";
|
||||||
|
|
||||||
using HttpClient httpClient = new HttpClient();
|
using HttpClient httpClient = new HttpClient();
|
||||||
using HttpResponseMessage response = await httpClient.GetAsync(url, HttpCompletionOption.ResponseHeadersRead);
|
using HttpResponseMessage response = await httpClient.GetAsync(url, HttpCompletionOption.ResponseHeadersRead);
|
||||||
|
|||||||
Reference in New Issue
Block a user