Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: Build and Deploy
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout️
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Install and Build
run: |
npm ci
npm run build

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ To build the app run `docker compose exec editor yarn run build`.

### Deployment

#### Automatic

1. To make the source code prettier, run `yarn pretty`.
1. By default, whenever you push a commit to the `main` branch, a github action will run, build your project, and deploy to the `gh-pages` branch on GitHub. If you do not want to use this feature, please remove the `.github/workflows/deploy.yml` file.

#### Manual

1. To make the source code prettier, run `yarn pretty`.
1. To the deploy the build into the `gh-pages` branch of your repository on GitHub, run `yarn deploy-stable`.
1. To deploy the build into to the `dev` branch for testing, run `yarn deploy-dev`.
Expand Down
Loading