Skip to content

Commit

Permalink
test (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
shhdgit authored Jan 17, 2025
1 parent 0296777 commit bd60b3b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/upload-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Upload test

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
name: Build website
steps:
- uses: actions/checkout@v3
with:
ref: "master"

- name: Set known_hosts
id: known-hosts
run: |
echo "BJ1=$(ssh-keyscan -H ${{ secrets.BJ_1_HOST }})" >> $GITHUB_OUTPUT
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: |
${{ steps.known-hosts.outputs.BJ1 }}
- name: Deploy to BJ1
run: |
rsync -avz --delete README.md "${{ secrets.SSH_USER }}@${{ secrets.BJ_1_HOST }}:${{ secrets.DEPLOY_PATH }}/test"

0 comments on commit bd60b3b

Please sign in to comment.