Skip to content

Commit

Permalink
modify pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaov-aspose committed Nov 4, 2024
1 parent c278e38 commit 37e76b9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 44 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/hugo-ci-workflow.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/pdf-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Hugo-CI
on:
push:
branches:
- develop

jobs:
job-one:
name: Deploy
runs-on: [self-hosted, linux, x64, dev4-pdf]
steps:
- name: hugo build
run: |
git clone https://x-access-token:${{ secrets.GH_PAT }}@github.com/aspose-pdf/Aspose.PDF-Hugo-template.git
cd Aspose.PDF-Hugo-template && ls -l
sudo npm install -D --save autoprefixer
sudo npm install -D --save postcss-cli
rsync --recursive --delete --force --progress ../* content/
rm -rf public
hugo --baseURL docs-qa.aspose.com/pdf --config ./config.toml;./configs/docs-qa.aspose.com-pdf.toml
- name: Configure AWS credential
uses: aws-actions/configure-aws-credentials@v3
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2

- name: Deploy static site to S3 bucket
run: aws s3 sync ./public/ s3://docs-qa.aspose.com/pdf --delete

0 comments on commit 37e76b9

Please sign in to comment.