Files
coopgo/.gitea/workflows/publish.yaml
Arnaud Delcasse 7befa8c2d1
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 1m12s
fix publish
2025-02-13 07:58:10 +01:00

39 lines
1.0 KiB
YAML

name: Publish To Prod
on:
push:
branches:
- master # Set a branch to deploy
pull_request:
jobs:
deploy_and_publish:
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: https://s3.fr-par.scw.cloud
AWS_S3_BUCKET: coopgo-www
AWS_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SCW_SECRET_ACCESS_KEY }}
AWS_REGION: 'fr-par'
SOURCE_DIR: 'public'