Update pdf-stage.yml #11
Workflow file for this run
This file contains hidden or 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: Hugo-CI | |
| on: | |
| push: | |
| branches: | |
| - develop1 | |
| jobs: | |
| job-one: | |
| name: Deploy | |
| runs-on: [self-hosted, linux, x64, dev4-pdf] | |
| steps: | |
| - name: Checkout private tools | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: aspose-pdf/Aspose.PDF-Hugo-template.git | |
| ref: main | |
| token: ${{ secrets.GH_PAT }} # `GH_PAT` is a secret that contains your PAT | |
| - name: hugo build | |
| run: | | |
| 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 credentials | |
| 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 |