Skip to content

Commit

Permalink
chore: move build pipeline to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dennishenry committed Nov 7, 2024
1 parent d532894 commit 7a25fdc
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 at 2024-07-30

- name: Install dependencies
run: yarn

- name: Run Build
run: yarn run build
deploy:
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 at 2024-07-30

- name: Install dependencies
run: yarn

- name: Run Deploy
run: sh tools/cdn.sh
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build

on:
push:
branches-ignore: [ master ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 at 2024-07-30

- name: Install dependencies
run: yarn

- name: Run Tests
run: yarn run test

0 comments on commit 7a25fdc

Please sign in to comment.