mirror of
https://github.com/modelec/modelec.club.git
synced 2026-01-18 16:37:30 +01:00
Add github action auto deploy
This commit is contained in:
28
.github/workflows/deploy.yml
vendored
Normal file
28
.github/workflows/deploy.yml
vendored
Normal 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
|
||||
BIN
assets/modelec-logo-small.png
Normal file
BIN
assets/modelec-logo-small.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
BIN
assets/photo coupe 2024/finale.mp4
Normal file
BIN
assets/photo coupe 2024/finale.mp4
Normal file
Binary file not shown.
@@ -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">
|
||||
|
||||
@@ -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)">❮</button>
|
||||
<button class="vnext" onclick="vplusSlides(1)">❯</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user