Skip to content

Commit abdff21

Browse files
committed
Added ci cd workflows
1 parent a6b925f commit abdff21

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Live-debugger landing page build check
2+
on:
3+
pull_request:
4+
paths:
5+
- ".github/workflows/landing-build-check.yml"
6+
- landing/**
7+
merge_group:
8+
branches:
9+
- main
10+
workflow_call:
11+
workflow_dispatch:
12+
13+
jobs:
14+
live-debugger-landing-build-check:
15+
if: github.repository == 'software-mansion/live-debugger'
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Check out
19+
uses: actions/checkout@v4
20+
with:
21+
submodules: "true"
22+
- name: Use Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
cache: "npm"
26+
- name: Install monorepo node dependencies
27+
working-directory: landing
28+
run: npm install
29+
- name: Build Reanimated docs
30+
working-directory: landing
31+
run: npm build
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Live-debugger landing page build check
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- ".github/workflows/landing-publish.yml"
8+
- landing/**
9+
workflow_dispatch:
10+
11+
jobs:
12+
live-debugger-landing-build-check:
13+
if: github.repository == 'software-mansion/live-debugger'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check out
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: "true"
20+
- name: Use Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
cache: "npm"
24+
- name: Install monorepo node dependencies
25+
working-directory: landing
26+
run: npm install
27+
- name: Build Reanimated docs
28+
working-directory: landing
29+
run: npm build
30+
- name: Publish generated content to GitHub Pages
31+
uses: JamesIves/github-pages-deploy-action@releases/v3
32+
with:
33+
FOLDER: landing/dist
34+
BRANCH: gh-pages
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)