测试一键安装

This commit is contained in:
snltty
2024-11-17 15:37:37 +08:00
parent e670cdbbbc
commit c6ecd4c460
3 changed files with 107 additions and 109 deletions

View File

@@ -258,26 +258,6 @@ jobs:
asset_path: ./public/publish-zip/linker-osx-arm64.zip asset_path: ./public/publish-zip/linker-osx-arm64.zip
asset_name: linker-osx-arm64.zip asset_name: linker-osx-arm64.zip
asset_content_type: application/zip asset_content_type: application/zip
- name: upload-version-oss
id: upload-version-oss
uses: tvrcgo/oss-action@v0.1.1
with:
region: oss-cn-shenzhen
key-id: ${{ secrets.ALIYUN_OSS_ID }}
key-secret: ${{ secrets.ALIYUN_OSS_SECRET }}
bucket: ide-qbcode
asset-path: ./public/version.txt
target-path: /downloads/linker/version.txt
- name: upload-windows-route-oss
id: upload-windows-route-oss
uses: tvrcgo/oss-action@v0.1.1
with:
region: oss-cn-shenzhen
key-id: ${{ secrets.ALIYUN_OSS_ID }}
key-secret: ${{ secrets.ALIYUN_OSS_SECRET }}
bucket: ide-qbcode
asset-path: ./public/publish-zip/linker-windows-route.zip
target-path: /downloads/linker/v1.5.8/linker-windows-route.zip
- name: upload-windows-route - name: upload-windows-route
id: upload-windows-route id: upload-windows-route
uses: actions/upload-release-asset@master uses: actions/upload-release-asset@master
@@ -288,33 +268,53 @@ jobs:
asset_path: ./public/publish-zip/linker-windows-route.zip asset_path: ./public/publish-zip/linker-windows-route.zip
asset_name: linker-windows-route.zip asset_name: linker-windows-route.zip
asset_content_type: application/zip asset_content_type: application/zip
- name: upload-install-service - name: upload-windows-route-oss
id: upload-install-service id: upload-windows-route-oss
uses: actions/upload-release-asset@master uses: tvrcgo/oss-action@v0.1.1
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} region: oss-cn-shenzhen
asset_path: ./linker/linker.service key-id: ${{ secrets.ALIYUN_OSS_ID }}
asset_name: linker.service key-secret: ${{ secrets.ALIYUN_OSS_SECRET }}
asset_content_type: text/plain bucket: ide-qbcode
- name: upload-installsh-systemd asset-path: ./public/publish-zip/linker-windows-route.zip
id: upload-installsh-systemd target-path: /downloads/linker/v1.5.8/linker-windows-route.zip
uses: actions/upload-release-asset@master - name: upload-version-oss
env: id: upload-version-oss
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }} uses: tvrcgo/oss-action@v0.1.1
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} region: oss-cn-shenzhen
asset_path: ./linker/linker-install-systemd.sh key-id: ${{ secrets.ALIYUN_OSS_ID }}
asset_name: linker-install-systemd.sh key-secret: ${{ secrets.ALIYUN_OSS_SECRET }}
asset_content_type: application/x-sh bucket: ide-qbcode
- name: upload-installsh-docker asset-path: ./public/version.txt
id: upload-installsh-docker target-path: /downloads/linker/version.txt
uses: actions/upload-release-asset@master - name: upload-install-service-oss
env: id: upload-install-service-oss
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }} uses: tvrcgo/oss-action@v0.1.1
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} region: oss-cn-shenzhen
asset_path: ./linker/linker-install-docker.sh key-id: ${{ secrets.ALIYUN_OSS_ID }}
asset_name: linker-install-docker.sh key-secret: ${{ secrets.ALIYUN_OSS_SECRET }}
asset_content_type: application/x-sh bucket: ide-qbcode
asset-path: ./linker/linker.service
target-path: /downloads/linker/linker.service
- name: upload-install-systemd-oss
id: upload-install-systemd-oss
uses: tvrcgo/oss-action@v0.1.1
with:
region: oss-cn-shenzhen
key-id: ${{ secrets.ALIYUN_OSS_ID }}
key-secret: ${{ secrets.ALIYUN_OSS_SECRET }}
bucket: ide-qbcode
asset-path: ./linker/linker-install-systemd.sh
target-path: /downloads/linker/linker-install-systemd.sh
- name: upload-install-docker-oss
id: upload-install-docker-oss
uses: tvrcgo/oss-action@v0.1.1
with:
region: oss-cn-shenzhen
key-id: ${{ secrets.ALIYUN_OSS_ID }}
key-secret: ${{ secrets.ALIYUN_OSS_SECRET }}
bucket: ide-qbcode
asset-path: ./linker/linker-install-docker.sh
target-path: /downloads/linker/linker-install-docker.sh

View File

@@ -89,16 +89,17 @@ function writeUpload(data) {
}; };
} }
data.jobs.build.steps.push({ data.jobs.build.steps.push({
name: `upload-version-oss`, name: `upload-windows-route`,
id: `upload-version-oss`, id: `upload-windows-route`,
uses: 'tvrcgo/oss-action@v0.1.1', uses: 'actions/upload-release-asset@master',
env: {
'GITHUB_TOKEN': '${{ secrets.ACTIONS_TOKEN }}'
},
with: { with: {
'region': 'oss-cn-shenzhen', 'upload_url': '${{ steps.create_release.outputs.upload_url }}',
'key-id': '${{ secrets.ALIYUN_OSS_ID }}', 'asset_path': `./public/publish-zip/linker-windows-route.zip`,
'key-secret': '${{ secrets.ALIYUN_OSS_SECRET }}', 'asset_name': `linker-windows-route.zip`,
'bucket': 'ide-qbcode', 'asset_content_type': 'application/zip'
'asset-path': `./public/version.txt`,
'target-path': `/downloads/linker/version.txt`
} }
}); });
data.jobs.build.steps.push({ data.jobs.build.steps.push({
@@ -114,63 +115,60 @@ function writeUpload(data) {
'target-path': `/downloads/linker/${tagName}/linker-windows-route.zip` 'target-path': `/downloads/linker/${tagName}/linker-windows-route.zip`
} }
}); });
data.jobs.build.steps.push({ data.jobs.build.steps.push({
name: `upload-windows-route`, name: `upload-version-oss`,
id: `upload-windows-route`, id: `upload-version-oss`,
uses: 'actions/upload-release-asset@master', uses: 'tvrcgo/oss-action@v0.1.1',
env: {
'GITHUB_TOKEN': '${{ secrets.ACTIONS_TOKEN }}'
},
with: { with: {
'upload_url': '${{ steps.create_release.outputs.upload_url }}', 'region': 'oss-cn-shenzhen',
'asset_path': `./public/publish-zip/linker-windows-route.zip`, 'key-id': '${{ secrets.ALIYUN_OSS_ID }}',
'asset_name': `linker-windows-route.zip`, 'key-secret': '${{ secrets.ALIYUN_OSS_SECRET }}',
'asset_content_type': 'application/zip' 'bucket': 'ide-qbcode',
} 'asset-path': `./public/version.txt`,
}); 'target-path': `/downloads/linker/version.txt`
data.jobs.build.steps.push({
name: `upload-install-service`,
id: `upload-install-service`,
uses: 'actions/upload-release-asset@master',
env: {
'GITHUB_TOKEN': '${{ secrets.ACTIONS_TOKEN }}'
},
with: {
'upload_url': '${{ steps.create_release.outputs.upload_url }}',
'asset_path': `./linker/linker.service`,
'asset_name': `linker.service`,
'asset_content_type': 'text/plain'
}
});
data.jobs.build.steps.push({
name: `upload-installsh-systemd`,
id: `upload-installsh-systemd`,
uses: 'actions/upload-release-asset@master',
env: {
'GITHUB_TOKEN': '${{ secrets.ACTIONS_TOKEN }}'
},
with: {
'upload_url': '${{ steps.create_release.outputs.upload_url }}',
'asset_path': `./linker/linker-install-systemd.sh`,
'asset_name': `linker-install-systemd.sh`,
'asset_content_type': 'application/x-sh'
}
});
data.jobs.build.steps.push({
name: `upload-installsh-docker`,
id: `upload-installsh-docker`,
uses: 'actions/upload-release-asset@master',
env: {
'GITHUB_TOKEN': '${{ secrets.ACTIONS_TOKEN }}'
},
with: {
'upload_url': '${{ steps.create_release.outputs.upload_url }}',
'asset_path': `./linker/linker-install-docker.sh`,
'asset_name': `linker-install-docker.sh`,
'asset_content_type': 'application/x-sh'
} }
}); });
data.jobs.build.steps.push({
name: `upload-install-service-oss`,
id: `upload-install-service-oss`,
uses: 'tvrcgo/oss-action@v0.1.1',
with: {
'region': 'oss-cn-shenzhen',
'key-id': '${{ secrets.ALIYUN_OSS_ID }}',
'key-secret': '${{ secrets.ALIYUN_OSS_SECRET }}',
'bucket': 'ide-qbcode',
'asset-path': `./linker/linker.service`,
'target-path': `/downloads/linker/linker.service`
}
});
data.jobs.build.steps.push({
name: `upload-install-systemd-oss`,
id: `upload-install-systemd-oss`,
uses: 'tvrcgo/oss-action@v0.1.1',
with: {
'region': 'oss-cn-shenzhen',
'key-id': '${{ secrets.ALIYUN_OSS_ID }}',
'key-secret': '${{ secrets.ALIYUN_OSS_SECRET }}',
'bucket': 'ide-qbcode',
'asset-path': `./linker/linker-install-systemd.sh`,
'target-path': `/downloads/linker/linker-install-systemd.sh`
}
});
data.jobs.build.steps.push({
name: `upload-install-docker-oss`,
id: `upload-install-docker-oss`,
uses: 'tvrcgo/oss-action@v0.1.1',
with: {
'region': 'oss-cn-shenzhen',
'key-id': '${{ secrets.ALIYUN_OSS_ID }}',
'key-secret': '${{ secrets.ALIYUN_OSS_SECRET }}',
'bucket': 'ide-qbcode',
'asset-path': `./linker/linker-install-docker.sh`,
'target-path': `/downloads/linker/linker-install-docker.sh`
}
});
} }
readVersionDesc().then((desc) => { readVersionDesc().then((desc) => {

View File

@@ -1,3 +1,3 @@
v1.5.8 v1.5.8
2024-11-17 15:03:39 2024-11-17 15:37:37
1. 修复设备断电导致配置文件丢失的问题 1. 修复设备断电导致配置文件丢失的问题