Update .gitea/workflows/deploy.yml
This commit is contained in:
@@ -7,37 +7,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
site-check:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Linting du code HTML, CSS et JavaScript sur un site non Node.js
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y w3m
|
|
||||||
sudo apt-get install -y npm
|
|
||||||
sudo npm install -g csslint
|
|
||||||
sudo npm install -g jshint
|
|
||||||
|
|
||||||
- name: Check HTML
|
|
||||||
run: |
|
|
||||||
w3m -dump -T text/html index.html > /dev/null
|
|
||||||
|
|
||||||
- name: Check CSS
|
|
||||||
run: |
|
|
||||||
csslint styles.css
|
|
||||||
|
|
||||||
- name: Check JavaScript
|
|
||||||
run: |
|
|
||||||
jshint scripts.js
|
|
||||||
|
|
||||||
deployment:
|
deployment:
|
||||||
runs-on: ubuntu-latest # Utilisation de l'image Ubuntu pour l'environnement de job
|
runs-on: ubuntu-latest
|
||||||
# Dépend de la réussite de l'action site-check
|
|
||||||
needs: site-check
|
|
||||||
steps:
|
steps:
|
||||||
# Étape 1: Setup SSH
|
# Étape 1: Setup SSH
|
||||||
- name: Setup SSH and Add Private Key
|
- name: Setup SSH and Add Private Key
|
||||||
|
|||||||
Reference in New Issue
Block a user