-
-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add workflow to publish GitHub pages (#2299)
## Description This PR adds additional workflow to publish landing page on GitHub pages whenever there's a change on main inside the `docs` directory. ## Changes - Added workflow for publishing landing page - Added .nojekyll file ## Checklist - [x] Ensured that CI passes
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
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,35 @@ | ||
name: Publish Screens landing page | ||
env: | ||
YARN_ENABLE_HARDENED_MODE: 0 | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: docs/** | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
if: github.repository == 'software-mansion/react-native-screens' | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: docs-check-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v4 | ||
|
||
- name: Generate landing page content | ||
run: >- | ||
git config --local user.email "action@github.com" | ||
&& git config --local user.name "GitHub Action" | ||
&& cd docs | ||
&& yarn | ||
&& yarn build | ||
- name: Publish generated content to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
FOLDER: docs/build | ||
BRANCH: gh-pages | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Empty file.