Skip to content

Commit

Permalink
Change publishing directory in gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcav committed May 11, 2024
1 parent 8f7e90d commit 54eb754
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/jsdoc-to-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
- name: Create artifact
uses: actions/[email protected]
with:
name: public
path: ./public
name: docs
path: ./docs

deploy:
needs: build
Expand All @@ -51,11 +51,13 @@ jobs:
token: ${{ github.token }}
- name: Clear existing content (optional)
run: rm -rf ./public # This will remove all existing files in the gh-pages branch
- name: Clear existing content (optional)
run: rm -rf ./docs # This will remove all existing files in the gh-pages branch
- name: Download artifact
uses: actions/[email protected]
with:
name: public
path: ./public
name: docs
path: ./docs
- name: Commit and push to gh-pages
run: |
git config user.name ${{ github.actor }}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ node_modules/
jspm_packages/

# Documentation directory
public
docs/

# Logs
logs
Expand Down
2 changes: 1 addition & 1 deletion jsdoc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"opts": {
"destination": "./public/",
"destination": "./docs/",
"encoding": "utf8",
"readme": "./README.md",
"recurse": true,
Expand Down

0 comments on commit 54eb754

Please sign in to comment.