-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Note: develop branch is used for multi-language test
- Loading branch information
1 parent
fc1b834
commit 317ccf3
Showing
3 changed files
with
66 additions
and
37 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Hugo-CI-Prod | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
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 && git pull) | ||
cd Aspose.PDF-Hugo-template | ||
sudo npm install -D --save autoprefixer | ||
sudo npm install -D --save postcss-cli | ||
rsync --recursive --delete --force --progress ../* content/ | ||
rm -rf content/Aspose.PDF-Hugo-template | ||
rm -rf public | ||
hugo0.136 --baseURL docs.aspose.com/pdf --config ./config.toml,./configs/docs.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: | | ||
cd Aspose.PDF-Hugo-template | ||
aws s3 sync ./public/ s3://docs.aspose.com/pdf --delete |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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 && git pull) | ||
cd Aspose.PDF-Hugo-template | ||
sudo npm install -D --save autoprefixer | ||
sudo npm install -D --save postcss-cli | ||
rsync --recursive --delete --force --progress ../* content/ | ||
rm -rf content/Aspose.PDF-Hugo-template | ||
rm -rf public | ||
hugo0.136 --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: | | ||
cd Aspose.PDF-Hugo-template | ||
aws s3 sync ./public/ s3://docs-qa.aspose.com/pdf --delete |