update toc #329
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deuxfleurs | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build_and_deploy: | |
name: Compilation du site Hugo et déploiement Deux fleurs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Récupération des données | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Installation de Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
cache: 'yarn' | |
- name: Installation des dépendances JavaScript | |
run: yarn install | |
- name: Installation de Hugo | |
uses: peaceiris/[email protected] | |
with: | |
hugo-version: '0.136.5' | |
extended: true | |
- name: Compilation du site | |
run: yarn osuny build | |
- name: Déploiement Garage | |
run: hugo deploy --force --maxDeletes -1 | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.DEUXFLEURS_ACCESS_KEY }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEUXFLEURS_SECRET }} | |
- name: Notification Slack en cas d'échecs | |
uses: ravsamhq/[email protected] | |
if: always() | |
with: | |
status: ${{ job.status }} | |
notify_when: "failure" | |
notification_title: "" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |