-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Set up docs preview with 'mo-doc' * Simplify formatter CI * Add 'docs' npm script * Update CI * Fix * Run 'dfx cache install' * Update github.io domain * Add 'destination_dir' * Fix * Adjust preview message text * Fix * Update CI * Swap out GH Pages deploy action * Fix * Simplify formatter CI * Use Node 20.x * Fix version conflict in package.json * Misc * Clarify preview text * Simplify CI * Merge * Try 'source code' in parentheses * More adjustments * More adjustments * Misc * Eh * Ehh
- Loading branch information
Showing
3 changed files
with
14 additions
and
20 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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: Delete preview on PR close | ||
name: Delete preview on PR closed | ||
|
||
# only trigger on pull request closed events | ||
on: | ||
pull_request: | ||
types: [closed] | ||
|
@@ -12,14 +11,14 @@ jobs: | |
PR_PATH: pull/${{github.event.number}} | ||
steps: | ||
- name: Make empty dir | ||
run: mkdir public | ||
run: mkdir docs | ||
|
||
- name: Delete folder | ||
uses: peaceiris/actions-gh-pages@v3 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs | ||
destination_dir: ${{ env.PR_PATH }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
folder: ./docs | ||
target-folder: ${{ env.PR_PATH }} | ||
|
||
- name: Comment on PR | ||
uses: hasura/[email protected] | ||
|
@@ -28,4 +27,4 @@ jobs: | |
repository: ${{ github.repository }} | ||
number: ${{ github.event.number }} | ||
id: deploy-preview | ||
message: "PR closed. Deleted preview at https://github.com/${{ github.repository }}/tree/gh-pages/${{ env.PR_PATH }}/" | ||
message: null |
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 |
---|---|---|
@@ -1 +1,6 @@ | ||
# Motoko Base Library Redesign | ||
# Motoko Base Library Revamp | ||
|
||
##### [Documentation preview](https://dfinity.github.io/motoko-base-revamp) | ||
|
||
--- | ||
|