Skip to content

Commit

Permalink
chore(setup): deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcaldas committed Sep 21, 2024
1 parent 54c8d95 commit 9612276
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main # Trigger the action on pushes to the 'main' branch (adjust if your default branch is different)

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # Use the node version you're working with

- name: Install dependencies
run: npm install

- name: Build static site
run: npm run build && npm run export

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out # This is the default export directory for Next.js static exports
# You can specify a 'cname' if you're using a custom domain
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.17
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
semi: false,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
tabWidth: 2,
}
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
output: 'export',
}

0 comments on commit 9612276

Please sign in to comment.