Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
visneviySecret committed Jun 3, 2024
1 parent 0adf99c commit 4cbdc1e
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/nuxtjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ jobs:
fi
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'
cache: ${{ steps.detect-package-manager.outputs.manager }}
run: |
echo "Setup Node"
node -v
npm -v
shell: bash

- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
Expand All @@ -66,7 +67,14 @@ jobs:
uses: actions/checkout@v2

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git fetch
git checkout gh-pages
git rm -r .
git checkout master ./dist
mv -fv ./dist/* ./
git add .
git commit -m "Deploying to gh-pages"
git push origin gh-pages

0 comments on commit 4cbdc1e

Please sign in to comment.