Skip to content

Commit

Permalink
Sync static files to server
Browse files Browse the repository at this point in the history
  • Loading branch information
damienallen committed Dec 5, 2024
1 parent 65c433e commit 4b3f90c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,19 @@ jobs:
rm -rf ./app
git add .
git commit -am "Created distributables"
git push --force --set-upstream origin build
git push --force --set-upstream origin build
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: unnecessary

- name: Add Known Hosts
run: ssh-keyscan -p ${{ secrets.SSH_PORT }} -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts

- name: Sync Static Files
run: |
rsync -avz --delete --exclude .git/ --exclude .github/ --exclude .gitignore --exclude README.md \
-e "ssh -p ${{ secrets.SSH_PORT }}" . ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/urban-heat

0 comments on commit 4b3f90c

Please sign in to comment.