Skip to content

Commit

Permalink
First version of about.aspose.ai
Browse files Browse the repository at this point in the history
  • Loading branch information
sohail-aspose committed Sep 13, 2024
1 parent faceb0f commit c06c7bb
Show file tree
Hide file tree
Showing 126 changed files with 14,869 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: github-pages

on:
push:
branches:
- main # Set a branch to deploy
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
deploy:
runs-on: macos-latest
steps:
- name: Checkout about repo
uses: actions/checkout@main
with:
repository: Aspose/about.aspose.ai
token: ${{ secrets.REPO_TOKEN }}
#submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.4.13
with:
hugo-version: '0.101.0'
extended: true

- name: Build
run: hugo --config "config.yml" --cleanDestinationDir --minify

- name: Deploy About to S3
# run: hugo deploy --maxDeletes -1 --target "production"
run: hugo deploy --maxDeletes -1 --target "prod"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS }}

- name: Invalidate CloudFront
uses: chetan/invalidate-cloudfront-action@v2
env:
DISTRIBUTION: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
PATHS: '/*'
AWS_REGION: 'us-west-2'
AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS }}
Loading

0 comments on commit c06c7bb

Please sign in to comment.