Skip to content

Commit

Permalink
Create products-svitdael.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
khozam authored Jan 23, 2025
1 parent daee324 commit 3c88060
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/products-svitdael.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Products-svitdael
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-svitdael.toml --minify

- name: Deploy products.conholdate.com to S3
run: hugo deploy --target "${{ github.event.inputs.environment }}" --maxDeletes=0
env:
AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS }}

0 comments on commit 3c88060

Please sign in to comment.