Skip to content

Commit

Permalink
[Communication::Website] Save Site
Browse files Browse the repository at this point in the history
  • Loading branch information
osuny-bot committed Dec 7, 2023
1 parent 7340652 commit 8768a84
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 4 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/deuxfleurs.yml
Original file line number Diff line number Diff line change
@@ -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

- 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 }}
2 changes: 1 addition & 1 deletion config/development/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DO NOT EDIT THIS FILE BY HAND - IT WILL BE OVERWRITTEN BY OSUNY

defaultContentLanguage: fr
defaultContentLanguage: en
defaultContentLanguageInSubdir: false
22 changes: 19 additions & 3 deletions config/production/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
# DO NOT EDIT THIS FILE BY HAND - IT WILL BE OVERWRITTEN BY OSUNY

baseURL: /
baseURL: https://site.cids.osuny.site

## LANGUAGE
defaultContentLanguage: fr
defaultContentLanguageInSubdir: false
defaultContentLanguage: en
defaultContentLanguageInSubdir: false

## CACHE
deployment:
matchers:
- pattern: "^.+\\.(woff2|woff|svg|ttf|eot|js|css)$"
cacheControl: "max-age=31536000, no-transform, public"
gzip: true
- pattern: "^.+\\.(png|jpg|jpeg|gif|webp)$"
cacheControl: "max-age=31536000, no-transform, public"
gzip: false

## DEUXFLEURS
deployment:
targets:
- name: "production"
URL: "s3://site.cids.osuny.site?endpoint=garage.deuxfleurs.fr&s3ForcePathStyle=true&region=garage"
3 changes: 3 additions & 0 deletions data/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: >
Site
social:

0 comments on commit 8768a84

Please sign in to comment.