feat: 如果上传时拖动的是文件夹,应该把文件夹下所有的文件都上传,当前是无法支持啥都没上传 #20
This file contains hidden or 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
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- main # 触发分支 | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
# - name: Configure Git | |
# run: | | |
# git remote set-url origin https://github.com/lim-sec/ai-coding-prompt-builder.git | |
# git config --global user.name "github-actions[bot]" | |
# git config --global user.email "[email protected]" | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.FUCK_ACTION_GITHUB_TOKEN }} | |
publish_dir: ./dist | |
force_orphan: true |