Skip to content

Commit

Permalink
set ssh push
Browse files Browse the repository at this point in the history
  • Loading branch information
bin-r00t committed Jun 14, 2024
1 parent 7ec3ec8 commit 486e758
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build
on: push
jobs:
build:
env:
HOST: ${{ secrets.HOST }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -12,5 +14,8 @@ jobs:
run: npm install -g yarn
- name: Build
run: yarn && yarn build
- name: List files
run: ls
- name: Generate SSH Key File
run: echo "${{ secrets.RSA }}" > ~/.ssh/id_rsa
- name: Upload Files
run: |
scp -r dist/* liubin@$HOST:/home/web/www -i ~/.ssh/id_rsa

0 comments on commit 486e758

Please sign in to comment.