Products-es #8
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: | |
deploy: | |
runs-on: macos-13 | |
environment: ${{ github.event.inputs.environment }} | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS }} | |
steps: | |
- name: Checkout theme repo | |
uses: actions/checkout@v3 | |
with: | |
repository: conholdate/products.conholdate.com | |
path: hugo_repo | |
token: ${{ secrets.REPO_TOKEN }} | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
submodules: true | |
- name: Setup Hugo | |
uses: peaceiris/[email protected] | |
with: | |
hugo-version: 0.101.0 | |
extended: true | |
- name: Build products.conholdate.com | |
run: hugo --config hugo_repo/config-es.toml --minify | |
- name: Deploy products.conholdate.com to S3 | |
run: hugo deploy --target "${{ github.event.inputs.environment }}" --maxDeletes -1 --force | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS }} |