Mobilité des séniors

This commit is contained in:
2024-03-25 18:05:48 +01:00
parent 2f6397ffbd
commit e3a19fb376
7 changed files with 2784 additions and 2 deletions

View File

@@ -0,0 +1,38 @@
name: Publish ToProd
on:
push:
branches:
- main # Set a branch to deploy
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Build
run: hugo --minify
- uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_ENDPOINT: coopgo-web-preview.s3.fr-par.scw.cloud
AWS_S3_BUCKET: coopgo_web_preview
AWS_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SCW_SECRET_ACCESS_KEY }}
AWS_REGION: 'fr-par' # optional: defaults to us-east-1
SOURCE_DIR: 'public' # optional: defaults to entire repository