Skip to content

Commit

Permalink
build: use ssh-scp-ssh-pipelines action
Browse files Browse the repository at this point in the history
  • Loading branch information
thebaptiste committed Oct 8, 2024
1 parent 1a03468 commit e495037
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,19 @@ jobs:
if: matrix.python-version == '3.7'
run: |
make coverage
- name: Publish coverage 1
- name: Publish coverage
if: matrix.python-version == '3.7'
uses: appleboy/ssh-action@master
uses: thebaptiste/ssh-scp-ssh-pipelines@metwork
env:
LOCAL: htmlcov
REMOTE: /pub/misc/mflog/coverage
with:
host: ${{ secrets.PUB_HOST }}
username: ${{ secrets.PUB_USERNAME }}
password: ${{ secrets.PUB_PASSWORD }}
user: ${{ secrets.PUB_USERNAME }}
pass: ${{ secrets.PUB_PASSWORD }}
port: 22
script: |
rm -Rf /pub/misc/mflog/coverage 2>/dev/null
mkdir -p /pub/misc/mflog/coverage
- name: Publish coverage 2
if: matrix.python-version == '3.7'
uses: garygrossgarten/github-action-scp@release
with:
local: htmlcov
remote: /pub/misc/mflog/coverage
host: ${{ secrets.PUB_HOST }}
username: ${{ secrets.PUB_USERNAME }}
password: ${{ secrets.PUB_PASSWORD }}
first_ssh: |
rm -Rf ${REMOTE} 2>/dev/null
mkdir -p ${REMOTE}
scp: |
'${LOCAL}/*' => ${REMOTE}

0 comments on commit e495037

Please sign in to comment.