From 0748a8c6e054a3c3a07f820230afabfb9fe3afd0 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Tue, 26 Sep 2023 14:43:35 +0200 Subject: [PATCH] static --- .../deuxfleurs_workflow/static.html.erb | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 app/views/admin/communication/websites/configs/deuxfleurs_workflow/static.html.erb diff --git a/app/views/admin/communication/websites/configs/deuxfleurs_workflow/static.html.erb b/app/views/admin/communication/websites/configs/deuxfleurs_workflow/static.html.erb new file mode 100644 index 000000000..b68bb0092 --- /dev/null +++ b/app/views/admin/communication/websites/configs/deuxfleurs_workflow/static.html.erb @@ -0,0 +1,40 @@ +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: '16' + cache: 'yarn' + + - name: Installation des dépendances JavaScript + run: yarn install --frozen-lockfile + + - name: Installation de Hugo + uses: peaceiris/actions-hugo@v2.6.0 + with: + hugo-version: 'latest' + extended: true + + - name: Compilation du site + run: hugo + + - 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 }} -- GitLab