Skip to content

Commit

Permalink
added auto-deploy with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
GMBueno committed Mar 28, 2024
1 parent e412657 commit 93a7979
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Generate static project
run: npm run generate

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist # Nuxt 3's generate command outputs to the `dist` directory by default
File renamed without changes.

0 comments on commit 93a7979

Please sign in to comment.