Skip to content

Commit

Permalink
fix: browser deploy ci
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenull committed Apr 19, 2022
1 parent 60f8eea commit dddac32
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 30 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/browser.yml
Expand Up @@ -24,5 +24,16 @@ jobs:
node-version: 14
- name: Install dependencies
run: yarn
- name: Deploy
run: yarn deploy:browser
- name: Build
run: yarn build:browser
# 查看 workflow 的文档来获取更多信息
# @see https://github.com/crazy-max/ghaction-github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
# 部署到 gh-pages 分支
target_branch: gh-pages
build_dir: dist
env:
# @see https://docs.github.com/cn/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 0 additions & 26 deletions deploy.sh

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -10,8 +10,7 @@
"dev": "vite",
"build": "tsc && vite build",
"build:browser": "tsc && vite build --mode=browser --base=/logseq-plugin-file-manager/",
"preview:browser": "vite preview --mode=browser --base=/logseq-plugin-file-manager/",
"deploy:browser": "sh deploy.sh"
"preview:browser": "vite preview --mode=browser --base=/logseq-plugin-file-manager/"
},
"dependencies": {
"@logseq/libs": "^0.0.1-alpha.34",
Expand Down

0 comments on commit dddac32

Please sign in to comment.