Skip to content

Commit

Permalink
🚀 create deploy_nextjs.yml for ghpage
Browse files Browse the repository at this point in the history
  • Loading branch information
mkubdev authored Feb 16, 2022
1 parent 5f99877 commit 1c73a71
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy_nextjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy WebXDAO Nextjs Landing to Github Pages

on:
push:
branches:
- main

workflow_dispatch:

jobs:
deployment:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "lts/*"
cache: "npm"

- name: Build
run: |
npm i
npm run build
npm run export
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./out

0 comments on commit 1c73a71

Please sign in to comment.