Skip to content

rename workflow

rename workflow #23

Workflow file for this run

name: Deploy to Scaleway
on:
push:
branches: [ "main" ]
jobs:
build_and_deploy:
name: Deploy Hugo Website
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.139.3
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.tar.gz https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_withdeploy_${HUGO_VERSION}_linux-amd64.tar.gz \
&& cd ${{ runner.temp }} \
&& tar -xvf hugo.tar.gz hugo \
&& sudo mv hugo /usr/local/bin/
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build site
env:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: hugo --minify
- name: Deploy to S3
run: hugo deploy --force --maxDeletes -1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SCW_SECRET_ACCESS_KEY }}