chore: amend monorepo build script (#7869) #125
This file contains hidden or 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
name: Docs Reanimated publish | |
env: | |
YARN_ENABLE_HARDENED_MODE: 0 | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- packages/docs-reanimated/** | |
- packages/docs-worklets/** | |
workflow_dispatch: | |
jobs: | |
publish: | |
if: github.repository == 'software-mansion/react-native-reanimated' | |
runs-on: ubuntu-latest | |
env: | |
REANIMATED_DOCS_DIR: packages/docs-reanimated | |
WORKLETS_DOCS_DIR: packages/docs-worklets | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Configure git user info | |
run: >- | |
git config --local user.email "[email protected]" | |
&& git config --local user.name "GitHub Action" | |
- name: Build Reanimated docs | |
working-directory: ${{ env.REANIMATED_DOCS_DIR }} | |
run: yarn && yarn build | |
- name: Build Worklets docs | |
working-directory: ${{ env.WORKLETS_DOCS_DIR }} | |
run: yarn && yarn build | |
- name: Publish generated content to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
FOLDER: packages/docs-reanimated/build | |
BRANCH: gh-pages | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |