Add github action auto deploy

This commit is contained in:
2024-09-03 16:07:21 +02:00
parent d26e75eeee
commit 7e0c92f60a
5 changed files with 36 additions and 0 deletions

28
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Deploy to server
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Copy build directory to server
uses: Dylan700/sftp-upload-action@v1.2.3
with:
server: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
uploads: |
./ => /var/www/modelec.club
delete: true

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

View File

@@ -8,6 +8,7 @@
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<link href="style.css" rel="stylesheet">
<script src="slideshow.js" defer></script>
<link rel="icon" type="image/x-icon" href="assets/modelec-logo-small.png">
</head>
<body>
<div id="content">

View File

@@ -9,6 +9,7 @@
<link href="style.css" rel="stylesheet">
<script src="slideshow.js" defer></script>
<script src="vslideshow.js" defer></script>
<link rel="icon" type="image/x-icon" href="assets/modelec-logo-small.png">
</head>
<body>
<div id="content">
@@ -80,6 +81,12 @@
</video>
<p class="card-subtext">Match de série 5</p>s
</div>
<div class="vslide fade">
<video controls autoplay class="video-coupe">
<source src="assets/photo%20coupe%202024/finale.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
<button class="vprev" onclick="vplusSlides(-1)">&#10094;</button>
<button class="vnext" onclick="vplusSlides(1)">&#10095;</button>
</div>