Update build.yaml
This commit is contained in:
parent
36a7511dc2
commit
7854ac18f9
1 changed files with 2 additions and 1 deletions
3
.github/workflows/build.yaml
vendored
3
.github/workflows/build.yaml
vendored
|
@ -10,6 +10,7 @@ env:
|
|||
name: ${{ github.event.repository.name }}
|
||||
release_name: ${{ github.ref_name }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
HOST: ${{ secrets.SSH_HOST }}
|
||||
jobs:
|
||||
build-beta:
|
||||
if: github.event.release.prerelease == true
|
||||
|
@ -34,7 +35,7 @@ jobs:
|
|||
- name: generate ssh-key
|
||||
run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
|
||||
- name: remove last iso
|
||||
run: sshpass -p "${{ secrets.SSH_PASS }}" ssh root@${{ secrets.SSH_HOST }} rm -rf /srv/http/test/Parchlinux-test-latest.iso
|
||||
run: sshpass -p "${{ secrets.SSH_PASS }}" ssh "root@$HOST" "rm -rf /srv/http/test/Parchlinux-test-latest.iso"
|
||||
- name: rename iso
|
||||
run: mv "$(ls out/*.iso)" out/Parchlinux-test-latest.iso
|
||||
- name: upload iso to host
|
||||
|
|
Loading…
Add table
Reference in a new issue