-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f138cb5
commit 16af6bf
Showing
2 changed files
with
11 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
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 |
---|---|---|
|
@@ -29,30 +29,38 @@ jobs: | |
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup | ||
|
||
- name: Build TypeDoc | ||
run: yarn doc | ||
|
||
- name: Zip It Up 🤐 | ||
run: | | ||
zip -r react-native-agora-docs.zip docs | ||
- name: Upload Artifact ⬆️ | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: react-native-agora-docs.zip | ||
path: react-native-agora-docs.zip | ||
if-no-files-found: error | ||
|
||
- name: Upload Doc Archive to GitHub release ⬆️ | ||
if: github.event.release | ||
uses: svenstaro/[email protected] | ||
with: | ||
file: react-native-agora-docs.zip | ||
asset_name: react-native-agora-docs.zip | ||
tag: ${{ github.ref_name }} | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
# Upload docs directory | ||
path: 'docs' | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |