Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Yudi committed Mar 18, 2024
1 parent c035a00 commit 7155edb
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches:
- '**'

pull_request:
branches:
- main


jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Build-artifacts
path: build/
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: main

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

jobs:
build:
Expand All @@ -14,15 +17,14 @@ jobs:
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: yarn.lock

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Generate license disclaimer
- name: Generate licenses disclaimer
run: yarn licenses generate-disclaimer > static/licenses.txt

- name: Build for production
- name: Build
run: yarn build

- name: Upload artifacts
Expand Down

0 comments on commit 7155edb

Please sign in to comment.