File tree Expand file tree Collapse file tree 1 file changed +6
-28
lines changed Expand file tree Collapse file tree 1 file changed +6
-28
lines changed Original file line number Diff line number Diff line change 32
32
exit 0
33
33
elif [ -f "${{ github.workspace }}/package.json" ]; then
34
34
echo "manager=npm" >> $GITHUB_OUTPUT
35
- echo "command=ci " >> $GITHUB_OUTPUT
36
- echo "runner=npx --no-install " >> $GITHUB_OUTPUT
35
+ echo "command=install " >> $GITHUB_OUTPUT
36
+ echo "runner=npm " >> $GITHUB_OUTPUT
37
37
exit 0
38
38
else
39
39
echo "Unable to determine package manager"
46
46
node-version : " 20"
47
47
cache : ${{ steps.detect-package-manager.outputs.manager }}
48
48
49
- - name : Setup Pages
50
- uses : actions/configure-pages@v4
51
-
52
- - name : Restore cache
53
- uses : actions/cache@v3
54
- with :
55
- path : |
56
- dist
57
- key : ${{ runner.os }}-vite-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
58
- restore-keys : |
59
- ${{ runner.os }}-vite-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
60
-
61
49
- name : Install dependencies
62
50
run : ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
63
51
70
58
- name : Add .nojekyll file
71
59
run : touch ./dist/.nojekyll
72
60
73
- - name : Upload artifact
74
- uses : actions/upload-pages-artifact @v3
61
+ - name : Deploy to gh-pages
62
+ uses : peaceiris/actions-gh-pages @v3
75
63
with :
76
- path : ./dist
77
-
78
- deploy :
79
- environment :
80
- name : github-pages
81
- url : ${{ steps.deployment.outputs.page_url }}
82
- runs-on : ubuntu-latest
83
- needs : build
84
- steps :
85
- - name : Deploy to GitHub Pages
86
- id : deployment
87
- uses : actions/deploy-pages@v4
64
+ github_token : ${{ secrets.GITHUB_TOKEN }}
65
+ publish_dir : ./dist
You can’t perform that action at this time.
0 commit comments