Skip to content

Commit

Permalink
update: rewrite path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Koooooo-7 committed Dec 4, 2023
1 parent 164f353 commit c4f9bf0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy.yml
Expand Up @@ -34,9 +34,15 @@ jobs:
# run: git add ./lib

# Option2: rewrite path
- name: rewirte path to CDN @4
- name: rewirte docsify.js to import docsify.min.js
run: sed -i 's|\"\/lib\/docsify.js|\"\/lib\/docsify.min.js|g' ./docs/index.html

- name: rewirte all local path to CDN @4
run: sed -i 's|\"\/lib|\"\/\/cdn.jsdelivr.net\/npm\/docsify@4\/lib|g' ./docs/index.html

- name: view rewirted index.html
run: cat ./docs/index.html

- name: Deploy to GithubPages
uses: peaceiris/actions-gh-pages@v3
#if: github.ref == 'refs/heads/main'
Expand All @@ -47,4 +53,4 @@ jobs:
keep_files: true
force_orphan: true
allow_empty_commit: true
commit_message: PagesDeploy commit - ${{ github.event.head_commit.message }}
commit_message: PagesDeploy - ${{ github.event.head_commit.message }}

0 comments on commit c4f9bf0

Please sign in to comment.