Products-es #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Products-es | |
on: | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: 'Build environment' | |
type: environment | |
default: staging | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: ${{ github.event.inputs.environment }} | |
steps: | |
- name: Checkout theme repo | |
uses: actions/checkout@v3 | |
with: | |
repository: conholdate/products.conholdate.com | |
token: ${{ secrets.REPO_TOKEN }} | |
submodules: true # Fetch hugo theme | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
- name: Setup Hugo | |
uses: peaceiris/[email protected] | |
with: | |
hugo-version: 0.101.0 | |
extended: true | |
- name: Build products.conholdate.com | |
run: hugo --config config-es.toml --minify | |
- name: Deploy products.conholdate.com to S3 | |
run: hugo deploy --config config-es.toml --target "${{ github.event.inputs.environment }}" --maxDeletes -1 --force | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS }} |