Skip to content

Commit 27d5a3a

Browse files
author
liukangtian
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents d261e11 + 7496b69 commit 27d5a3a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/gh-pages.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,8 @@ jobs:
9393
AWS_REGION: ${{ vars.AWS_S3_REGION }}
9494
run: |
9595
tar -czf docs-${{ github.sha }}.tar.gz -C artifact .
96-
aws s3 cp docs-${{ github.sha }}.tar.gz s3://devnet-build-artifacts/docs-website/${{ github.sha }}.tar.gz
97-
aws s3 cp docs-${{ github.sha }}.tar.gz s3://mainnet-build-artifacts/docs-website/${{ github.sha }}.tar.gz
96+
if [ "${{ github.ref }}" == "refs/heads/dev" ]; then
97+
aws s3 cp docs-${{ github.sha }}.tar.gz s3://devnet-build-artifacts/docs-website/${{ github.sha }}.tar.gz
98+
elif [ "${{ github.ref }}" == "refs/heads/main" ]; then
99+
aws s3 cp docs-${{ github.sha }}.tar.gz s3://mainnet-build-artifacts/docs-website/${{ github.sha }}.tar.gz
100+
fi

0 commit comments

Comments
 (0)