Skip to content

Commit 6139058

Browse files
committed
test: fix deploy script
1 parent 3ccd861 commit 6139058

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/pages.yaml

+11-3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
key: ${{ runner.OS }}-npm-cache
2424
restore-keys: |
2525
${{ runner.OS }}-npm-cache
26+
- run: npm ci
2627
- name: Install Dependencies
2728
run: npm install
2829
- name: MakeCategory
@@ -33,7 +34,14 @@ jobs:
3334
- name: Build
3435
run: npm run build
3536
- name: Deploy
36-
uses: peaceiris/actions-gh-pages@v3
37+
uses: skywarth/vite-github-pages[email protected]
3738
with:
38-
github_token: ${{ secrets.GITHUB_TOKEN }}
39-
publish_dir: ./website
39+
# Public base path string for vite, this affects the routing, history and asset links. Make sure to provide appropriately since Github Pages stores your app in a directory under a subdomain.
40+
# Which folder do you want your Github Page to use as root directory. Usually it is your build output directory such as ./dist
41+
build_path: ./website
42+
# Node env that will be used for the installation of dependencies. It is imperative you use an environment that has 'vite' as dependency. Commonly, that is 'dev'.
43+
# Node env that will be used for build phase.
44+
# Your preference of package manager: 'npm' and 'yarn' are possible values.
45+
package_manager: npm
46+
# Desired name for the Deployment environment. It is also the exposed artifact name which contains the build output (dist).
47+
# Controls the debug mode, boolean, true is for on. When turned on, it'll output certain information on certain steps. Mainly used for development, but use it as you please to inspect your env and variables

0 commit comments

Comments
 (0)