From 46f641220c3571f456f735046991c24560e58432 Mon Sep 17 00:00:00 2001 From: Alexandr Bogomyakov Date: Mon, 4 May 2020 13:41:24 +0300 Subject: [PATCH] Add SCP to deploy --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b43552c..99a812f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,3 +82,13 @@ jobs: export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} ./bin/linux/amd64/github-release upload -u house-of-vanity -r tmux-helper --tag ${{ steps.get_version.outputs.FULL_TAG }} --name arch_linux_tmux-helper-${{ steps.get_version.outputs.VERSION }}-x86_64.pkg.tar.zst --file ./artifacts/tmux-helper-x86_64.pkg.tar.zst ./bin/linux/amd64/github-release upload -u house-of-vanity -r tmux-helper --tag ${{ steps.get_version.outputs.FULL_TAG }} --name tmux-helper-${{ steps.get_version.outputs.VERSION }} --file ./artifacts/tmux-helper + + - name: Copy package to repository + uses: appleboy/scp-action@master + with: + host: ${{ secrets.SSH_HOST }} + username: github_deploy + port: 22 + key: ${{ secrets.SSH_KEY }} + source: "./artifacts/tmux-helper-x86_64.pkg.tar.zst" + target: "/srv/arch-repo/"