Skip to content

[Communication::Website] Save Site multilingue staging #68

[Communication::Website] Save Site multilingue staging

[Communication::Website] Save Site multilingue staging #68

Workflow file for this run

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: 'latest'
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 }}