Skip to content

Commit

Permalink
Add deploy actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleey committed Dec 3, 2024
1 parent cc112ea commit 504a9f2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to VM

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
- name: Deploy project to VM
run: |
rsync -avz --delete ./src/ [email protected]:/var/www/html/
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
11 changes: 11 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CCUFC</title>
</head>
<body>
<a href="#">ccufc.com.br</a>
</body>
</html>

0 comments on commit 504a9f2

Please sign in to comment.