diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 7ccec52..16b7a9f 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -7,37 +7,8 @@ on: 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: - runs-on: ubuntu-latest # Utilisation de l'image Ubuntu pour l'environnement de job - # Dépend de la réussite de l'action site-check - needs: site-check + runs-on: ubuntu-latest steps: # Étape 1: Setup SSH - name: Setup SSH and Add Private Key