Skip to content

Commit

Permalink
Merge pull request #1 from hollow-leaf/feat/deployActions
Browse files Browse the repository at this point in the history
feat: deploy frontend action
  • Loading branch information
kidneyweakx authored Aug 17, 2023
2 parents 5dc72c4 + af167f1 commit 63fb6ff
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ghpage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Frontend deploy

on:
push:
branches:
- main # The branch the action should deploy from.
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: actions/[email protected]

- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: '16.x'

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- name: Install dependencies
run: pnpm install

- name: Build my App
run: pnpm run build

- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: apps/web/out # The folder the action should deploy.
1 change: 1 addition & 0 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
output: 'export',
reactStrictMode: true,
};

0 comments on commit 63fb6ff

Please sign in to comment.