Skip to content

Commit 0131b82

Browse files
changing the deploy.yaml workflow (#2897)
1 parent f0b6685 commit 0131b82

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/push-deploy-website.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ jobs:
3636
url: https://docs-api.talawa.io
3737
steps:
3838
- uses: actions/checkout@v4
39-
- uses: pnpm/action-setup@v4
40-
- uses: actions/cache@v3
39+
- uses: actions/setup-node@v4
4140
with:
42-
path: docs/.docusaurus
43-
key: docusaurus-${{ hashFiles('docs/**') }}
44-
restore-keys: |
45-
docusaurus-
41+
node-version: '20.x'
4642
- uses: webfactory/[email protected]
4743
with:
4844
ssh-private-key: ${{ secrets.DEPLOY_GITHUB_PAGES }}
@@ -54,11 +50,6 @@ jobs:
5450
run: |
5551
git config --global user.email "[email protected]"
5652
git config --global user.name "gh-actions"
57-
if ! pnpm install --frozen-lockfile; then
58-
echo "Failed to install dependencies"
59-
exit 1
60-
fi
61-
if ! pnpm run deploy; then
62-
echo "Deployment failed"
63-
exit 1
64-
fi
53+
yarn install --frozen-lockfile
54+
yarn deploy
55+

0 commit comments

Comments
 (0)