Skip to content

Commit 2c1d50e

Browse files
author
jakmro
committed
chore: update GitHub Actions workflow for documentation deployment
- Added conditional to run deployment only for the specified repository. - Updated artifact naming to include the GitHub run ID
1 parent 56b562d commit 2c1d50e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ concurrency:
1616

1717
jobs:
1818
deploy:
19+
if: github.repository == 'software-mansion-labs/react-native-rag'
1920
runs-on: ubuntu-latest
2021
environment:
2122
name: github-pages
@@ -32,5 +33,8 @@ jobs:
3233
- uses: actions/upload-pages-artifact@v3
3334
with:
3435
path: docs
36+
name: github-pages-${{ github.run_id }}
3537
- id: deployment
3638
uses: actions/deploy-pages@v4
39+
with:
40+
artifact_name: github-pages-${{ github.run_id }}

0 commit comments

Comments
 (0)