Skip to content

Commit 7496b69

Browse files
liam-icheng-lailiam.lai
andauthored
push artifacts based on branch (#27)
Co-authored-by: liam.lai <liam.lai@us>
1 parent bf41c2c commit 7496b69

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)