Skip to content

Cells-Staging-Split #21

Cells-Staging-Split

Cells-Staging-Split #21

name: Cells-Staging-Split
on:
workflow_dispatch:
jobs:
deploy:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
configure_one_product:
- android
- background
- clear
- conversion
- export
- family
- merge
- saveas
- protect
- cpp
- curl
- go
- java
- net
- nodejs
- perl
- php
- python
- ruby
- swift
steps:
- name: Checkout theme repo
uses: actions/checkout@v2
with:
repository: aspose-cloud/products.aspose.cloud
token: ${{ secrets.REPO_TOKEN }}
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 0.101.0
extended: true
- name: Install autoprefixer
run: npm install -D --save autoprefixer
- name: Install postcss-cli
run: npm install -D --save postcss-cli
# - name: Find and Replace
# run: LC_ALL=C find . -type f -name '*.md' -exec sed -i '' s/url:/url_ignore:/g {} +
# - name: Find and Replace domain name
# run: LC_ALL=C find . -type f -name '*.md' -exec sed -i '' s/products.aspose.cloud:/products-qa.aspose.cloud:/g {} +
- name: Configure build environment
env:
CONFIGURE_ONE_PRODUCT: ${{ matrix.configure_one_product }}
run: npm run configure
- name: Display config.json
run: cat /Users/runner/work/products.aspose.cloud-workflows/products.aspose.cloud-workflows/config.json
- name: Build ${{ matrix.configure_one_product }}
run: hugo --config "./config/cells-stage.toml","config.json" -c "content/cells" -b "https://products-qa.aspose.cloud/cells" --cleanDestinationDir --minify --templateMetrics --templateMetricsHints
- name: Prepare public folder
run: |
find $GITHUB_WORKSPACE/public -iname 'sitemap.xml'
- name: Deploy ${{ matrix.configure_one_product }} to S3
run: hugo deploy --config "./config/cells-stage.toml" --target "cells" --maxDeletes=0 --force
env:
AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS }}