Skip to content

Commit d6044ad

Browse files
Update pdf-stage.yml
1 parent 61af9b1 commit d6044ad

File tree

1 file changed

+22
-34
lines changed

1 file changed

+22
-34
lines changed

.github/workflows/pdf-stage.yml

Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,27 @@ jobs:
1111
name: Deploy
1212
runs-on: [self-hosted, linux, x64, dev4-pdf]
1313
steps:
14-
- name: Checkout private tools
15-
uses: actions/checkout@v4
16-
with:
17-
repository: github.com/aspose-pdf/Aspose.PDF-Hugo-template.git
18-
token: ${{ secrets.GH_PAT }} # `GH_PAT` is a secret that contains your PAT
19-
path: themes
20-
- name: hugo build
21-
run: |
22-
cd themes && ls -l
23-
sudo npm install -D --save autoprefixer
24-
sudo npm install -D --save postcss-cli
25-
rsync --recursive --delete --force --progress ../* content/
26-
rm -rf public
27-
hugo --baseURL docs-qa.aspose.com/pdf --config ./config.toml;./configs/docs-qa.aspose.com-pdf.toml
14+
- name: Checkout private tools
15+
uses: actions/checkout@v4
16+
with:
17+
repository: github.com/aspose-pdf/Aspose.PDF-Hugo-template.git
18+
token: ${{ secrets.GH_PAT }} # `GH_PAT` is a secret that contains your PAT
19+
path: themes
20+
- name: hugo build
21+
run: |
22+
cd themes && ls -l
23+
sudo npm install -D --save autoprefixer
24+
sudo npm install -D --save postcss-cli
25+
rsync --recursive --delete --force --progress ../* content/
26+
rm -rf public
27+
hugo --baseURL docs-qa.aspose.com/pdf --config ./config.toml;./configs/docs-qa.aspose.com-pdf.toml
2828

29-
- name: Configure AWS Credentials
30-
uses: aws-actions/configure-aws-credentials@v1
31-
with:
32-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
33-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
34-
aws-region: us-west-2
29+
- name: Configure AWS Credentials
30+
uses: aws-actions/configure-aws-credentials@v1
31+
with:
32+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
33+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
34+
aws-region: us-west-2
3535

36-
- name: Deploy static site to S3 bucket
37-
run: aws s3 sync ./public/ s3://docs-qa.aspose.com/pdf --delete
38-
39-
# - name: hugo deploy
40-
# uses: appleboy/ssh-action@master
41-
# with:
42-
# host: ${{ secrets.HOST }}
43-
# username: ${{ secrets.USERNAME }}
44-
# key: ${{ secrets.SSHKEY }}
45-
# port: ${{ secrets.SSHPORT }}
46-
# script: |
47-
# sudo rsync --recursive --delete --force --progress ${{ secrets.PUBLICCONTENTPATH }} ${{ secrets.DEPLOYPATH }}
48-
# sudo chmod -R 755 ${{ secrets.DEPLOYPATH }}
49-
# sudo nginx -s reload
36+
- name: Deploy static site to S3 bucket
37+
run: aws s3 sync ./public/ s3://docs-qa.aspose.com/pdf --delete

0 commit comments

Comments
 (0)