Skip to content

Commit

Permalink
Separate code
Browse files Browse the repository at this point in the history
  • Loading branch information
NeuroShepherd committed Dec 5, 2024
1 parent d31cf13 commit f541f7d
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,27 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check contents
run: |
pwd
git status
git branch
git checkout gh-pages
git branch
ls -a
- name: Push to Remote
env:
REMOTE_USERNAME: ${{ secrets.RemoteUsername }}
REMOTE_HOSTNAME: ${{ secrets.RemoteHostname }}
REMOTE_PASSWORD: ${{ secrets.RemotePassword }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
pwd
git status
git branch
git checkout gh-pages
git branch
ls -a
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/lmu_osc_server_gh_action_key
chmod 600 ~/.ssh/lmu_osc_server_gh_action_key
ssh -i ~/.ssh/lmu_osc_server_gh_action_key
ssh-keyscan -H "$REMOTE_HOSTNAME" >> ~/.ssh/known_hosts
sshpass -p '$REMOTE_PASSWORD' scp -r ./* "$REMOTE_USERNAME"@"$REMOTE_HOSTNAME":~/website
sshpass -p '$REMOTE_PASSWORD' scp -i ~/.ssh/lmu_osc_server_gh_action_key -r ./* "$REMOTE_USERNAME"@"$REMOTE_HOSTNAME":~/website

0 comments on commit f541f7d

Please sign in to comment.