Skip to content

Commit a153e0f

Browse files
sachinsachin
authored andcommitted
fixes
1 parent 3d4b177 commit a153e0f

File tree

1 file changed

+6
-28
lines changed

1 file changed

+6
-28
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
exit 0
3333
elif [ -f "${{ github.workspace }}/package.json" ]; then
3434
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
3737
exit 0
3838
else
3939
echo "Unable to determine package manager"
@@ -46,18 +46,6 @@ jobs:
4646
node-version: "20"
4747
cache: ${{ steps.detect-package-manager.outputs.manager }}
4848

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-
6149
- name: Install dependencies
6250
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
6351

@@ -70,18 +58,8 @@ jobs:
7058
- name: Add .nojekyll file
7159
run: touch ./dist/.nojekyll
7260

73-
- name: Upload artifact
74-
uses: actions/upload-pages-artifact@v3
61+
- name: Deploy to gh-pages
62+
uses: peaceiris/actions-gh-pages@v3
7563
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

0 commit comments

Comments
 (0)