diff --git a/.github/workflows/yakit-ee.yml b/.github/workflows/yakit-ee.yml index 3d45e3af23..f4e83c9352 100644 --- a/.github/workflows/yakit-ee.yml +++ b/.github/workflows/yakit-ee.yml @@ -261,47 +261,15 @@ jobs: - run: ls name: Ls Published Artifacts... - - name: Deploy And Execute Commands - uses: appleboy/ssh-action@master # 使用ssh链接服务器 + - name: Upload Yakit EE To OSS + uses: tvrcgo/upload-to-oss@master with: - host: ${{ secrets.EE_OSS_HOST }} - username: "root" - key: ${{ secrets.EE_OSS_KEY_SECRET }} - script: | - DIRECTORY="yakit-ee" - [ -d "$DIRECTORY" ] || mkdir "$DIRECTORY" - cd "$DIRECTORY" - DIRECTORY="${{ steps.generate_version.outputs.value }}" - [ -d "$DIRECTORY" ] && rm -r "$DIRECTORY" - mkdir "$DIRECTORY" - - name: Upload Out SSH - uses: easingthemes/ssh-deploy@v5.1.0 - with: - REMOTE_HOST: "${{ secrets.EE_OSS_HOST }}" - SSH_PRIVATE_KEY: ${{ secrets.EE_OSS_KEY_SECRET }} - REMOTE_USER: "root" - ARGS: "-avzr --delete" - SOURCE: "*" - TARGET: "/root/yakit-ee/${{ steps.generate_version.outputs.value }}/" - - # - name: Upload Yakit to oss - # uses: tvrcgo/upload-to-oss@master - # with: - # key-id: ${{ secrets.OSS_KEY_ID }} - # key-secret: ${{ secrets.OSS_KEY_SECRET }} - # region: oss-accelerate - # bucket: yaklang - # assets: | - # Yakit-${{ steps.fetchtag_release.outputs.value }}-windows-amd64.exe:/yak/${{ steps.fetchtag_release.outputs.value }}/Yakit-${{ steps.fetchtag_release.outputs.value }}-windows-amd64.exe - # Yakit-${{ steps.fetchtag_release.outputs.value }}-darwin-x64.dmg:/yak/${{ steps.fetchtag_release.outputs.value }}/Yakit-${{ steps.fetchtag_release.outputs.value }}-darwin-x64.dmg - # Yakit-${{ steps.fetchtag_release.outputs.value }}-darwin-arm64.dmg:/yak/${{ steps.fetchtag_release.outputs.value }}/Yakit-${{ steps.fetchtag_release.outputs.value }}-darwin-arm64.dmg - # Yakit-${{ steps.fetchtag_release.outputs.value }}-linux-amd64.AppImage:/yak/${{ steps.fetchtag_release.outputs.value }}/Yakit-${{ steps.fetchtag_release.outputs.value }}-linux-amd64.AppImage - # Yakit-${{ steps.fetchtag_release.outputs.value }}-linux-arm64.AppImage:/yak/${{ steps.fetchtag_release.outputs.value }}/Yakit-${{ steps.fetchtag_release.outputs.value }}-linux-arm64.AppImage - # Yakit-${{ steps.fetchtag_release.outputs.value }}-windows-legacy-amd64.exe:/yak/${{ steps.fetchtag_release.outputs.value }}/Yakit-${{ steps.fetchtag_release.outputs.value }}-windows-legacy-amd64.exe - # Yakit-${{ steps.fetchtag_release.outputs.value }}-darwin-legacy-x64.dmg:/yak/${{ steps.fetchtag_release.outputs.value }}/Yakit-${{ steps.fetchtag_release.outputs.value }}-darwin-legacy-x64.dmg - # Yakit-${{ steps.fetchtag_release.outputs.value }}-darwin-legacy-arm64.dmg:/yak/${{ steps.fetchtag_release.outputs.value }}/Yakit-${{ steps.fetchtag_release.outputs.value }}-darwin-legacy-arm64.dmg - # Yakit-${{ steps.fetchtag_release.outputs.value }}-linux-legacy-amd64.AppImage:/yak/${{ steps.fetchtag_release.outputs.value }}/Yakit-${{ steps.fetchtag_release.outputs.value }}-linux-legacy-amd64.AppImage - # Yakit-${{ steps.fetchtag_release.outputs.value }}-linux-legacy-arm64.AppImage:/yak/${{ steps.fetchtag_release.outputs.value }}/Yakit-${{ steps.fetchtag_release.outputs.value }}-linux-legacy-arm64.AppImage + key-id: ${{ secrets.OSS_KEY_ID }} + key-secret: ${{ secrets.OSS_KEY_SECRET }} + region: oss-accelerate + bucket: yaklang + assets: | + *:/vip/${{ steps.generate_version.outputs.value }}/ - name: Update OSS latest file run: echo ${{ steps.generate_version.outputs.value }}