Skip to content

Commit

Permalink
Setting up deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
naps62 committed Oct 17, 2023
1 parent 76542a3 commit 799d401
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: deploy

on:
push:
branches: [main]
workflow_dispatch:

jobs:
deploy:
permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- run: yarn install
- run: yarn build
env:
NODE_ENV: production

- uses: actions/upload-pages-artifact@v2
with:
path: "out"
6 changes: 4 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {
output: "export",
};

module.exports = nextConfig
module.exports = nextConfig;

0 comments on commit 799d401

Please sign in to comment.