Skip to content

Commit

Permalink
Update auto_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
raller1028 authored Mar 12, 2023
1 parent dd0d7b8 commit 7215282
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/auto_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:

- name: Create a tmp directory and copy files
run: |
mkdir -p ./build/sysroot/var/lib/linux-all-casaos-appstore
cp -r ./Apps ./build/sysroot/var/lib/linux-all-casaos-appstore/
mkdir -p ./build/sysroot/var/lib/casaos/appstore/default/linux-all-casaos-appstore
cp -r ./Apps ./build/sysroot/var/lib/casaos/appstore/default/linux-all-casaos-appstore/
- name: Compress action step
uses: a7ul/tar-action@v1.1.0
id: compress
with:
command: c
files: |
./build/sysroot/var/lib/linux-all-casaos-appstore
outPath: ./build/sysroot/var/lib/linux-all-casaos-appstore.tar.gz
./build/sysroot/var/lib/casaos/appstore/default/linux-all-casaos-appstore
outPath: ./build/sysroot/var/lib/casaos/appstore/default/linux-all-casaos-appstore.tar.gz

- name: Create Release
uses: djnicholson/release-action@v2.11
Expand All @@ -33,7 +33,7 @@ jobs:
tag-name: '${{ steps.date.outputs.date }}'
release-name: '${{ steps.date.outputs.date }}'
asset-name: 'linux-all-casaos-appstore.tar.gz'
file: './build/sysroot/var/lib/linux-all-casaos-appstore.tar.gz'
file: './build/sysroot/var/lib/casaos/appstore/default/linux-all-casaos-appstore.tar.gz'
- name: install sshpass
run: sudo apt install sshpass --yes

Expand All @@ -56,7 +56,7 @@ jobs:
- name: copy tar to target host
shell: bash
run: |
sshpass -p "${{ secrets.ssh_password }}" scp -r -o StrictHostKeyChecking=no -P 22 ./build/sysroot/var/lib/linux-all-casaos-appstore.tar.gz root@10.147.18.11:/var/www/download
sshpass -p "${{ secrets.ssh_password }}" scp -r -o StrictHostKeyChecking=no -P 22 ./build/sysroot/var/lib/casaos/appstore/default/linux-all-casaos-appstore.tar.gz root@10.147.18.11:/var/www/download
echo "ping success"
- name: send message
run: |
Expand Down

0 comments on commit 7215282

Please sign in to comment.