-
-
Notifications
You must be signed in to change notification settings - Fork 758
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into ThePiyushAggarwal-fix-933-refetching-in-o…
…rgpost
- Loading branch information
Showing
321 changed files
with
9,482 additions
and
4,865 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 |
---|---|---|
|
@@ -35,4 +35,80 @@ jobs: | |
verbose: true | ||
fail_ci_if_error: false | ||
name: '${{env.CODECOV_UNIQUE_NAME}}' | ||
|
||
Generate-Documentation: | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/automated-docs' | ||
steps: | ||
- name: Checkout the Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies | ||
run: yarn install --legacy-peer-deps | ||
|
||
- name: Install TypeScript Globally and add GraphQL tag | ||
run: yarn global add typescript | ||
- run: yarn add graphql-tag | ||
|
||
- name: Update Dependencies | ||
run: yarn upgrade | ||
|
||
- name: Generate Documentation of Markdown pages | ||
run: | | ||
yarn global add typedoc | ||
yarn add typedoc-plugin-markdown | ||
yarn typedoc --entryPoints src/components src/screens --out talawa-admin-docs --plugin typedoc-plugin-markdown --theme markdown --entryPointStrategy expand --exclude "**/*.test.ts" --exclude "**/*.css" | ||
- name: Checking doc updated | ||
id: DocUpdated | ||
run: | | ||
if [ -n "$(git status --porcelain)" ]; then | ||
echo "updateDoc=true" >> $GITHUB_OUTPUT | ||
echo -e "Documentation has been updated!!" | ||
else | ||
Green='0;32' | ||
NoColor='\033[0m' | ||
echo -e "${Green}No documentation updated${NoColor}" | ||
fi | ||
- name: Set env variables | ||
if: steps.DocUpdated.outputs.updateDoc | ||
run: | | ||
echo "commit_id=$(echo $(git rev-parse HEAD))" >> $GITHUB_ENV | ||
echo "email=$(echo $(git log --pretty=format:"%ae" $commit_id))" >> $GITHUB_ENV | ||
- name: Update Doc | ||
if: steps.DocUpdated.outputs.updateDoc | ||
run: | | ||
Green='0;32' | ||
NoColor='\033[0m' | ||
git config --global user.name "${{github.actor}}" | ||
git config --global user.email "${{env.email}}" | ||
git add . | ||
git commit -m "Update documentation" | ||
git push | ||
echo -e "🚀${Green} Hurrah! doc updated${NoColor}" | ||
- name: Create Documentation Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: documentation-admin | ||
path: talawa-admin-docs | ||
|
||
Copy-docs-to-talawa-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dmnemec/[email protected] | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.TALAWA_DOCS_SYNC_NEW }} | ||
with: | ||
source_file: 'talawa-admin-docs/' | ||
destination_repo: 'PalisadoesFoundation/talawa-docs' | ||
destination_branch: 'develop' | ||
destination_folder: 'docs/' | ||
user_email: '${{env.email}}' | ||
user_name: '${{github.actor}}' | ||
commit_message: 'Talawa Admin docs updated' | ||
|
||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.