Skip to content

Commit

Permalink
测试
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rdfree committed Aug 16, 2024
1 parent 042af80 commit 91880b0
Showing 1 changed file with 8 additions and 40 deletions.
48 changes: 8 additions & 40 deletions .github/workflows/yakit-ee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 91880b0

Please sign in to comment.