Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AiverAiva committed Jul 29, 2023
1 parent ed2bf02 commit bd6b781
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ jobs:
- name: Generate index.html
run: node index.js

# - name: Duplicate index.html
# run: |
# mkdir dist
# cp -r ./src ./dist
# cp ./index.html ./dist
- name: Duplicate index.html
run: |
mkdir dist
cp -r ./src ./dist
cp ./index.html ./dist
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
# ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} # Settings > Secret 建立的 ACCESS_TOKEN,推同個 repo 的話可以不需要
BRANCH: gh-pages # deploy 到 gh-pages 這個分支
FOLDER: src
FOLDER: dist # build 後的資料夾

0 comments on commit bd6b781

Please sign in to comment.