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
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Main

on:
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4

- name: Installing Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"

- name: install dependencies
run: npm ci

- name: run build
run: npm build

- name: deploy
if: github.ref_name == 'main'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
name: Main

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
name: Build
name: Test
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -19,7 +17,7 @@ jobs:
- name: Installing Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: 22
cache: "npm"

- name: install dependencies
Expand Down