Skip to content

Commit 089495b

Browse files
authored
Added landing page ci cd workflows (#831)
* Added ci cd workflows * fix lock * fix * publish * publish final
1 parent a6b925f commit 089495b

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
cache-dependency-path: landing/package-lock.json
27+
- name: Install node dependencies
28+
working-directory: landing
29+
run: npm install
30+
- name: Build landing page
31+
working-directory: landing
32+
run: npm run build
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Live-debugger landing page publish
2+
on:
3+
push:
4+
paths:
5+
- ".github/workflows/landing-publish.yml"
6+
- landing/**
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
live-debugger-landing-publish:
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+
cache-dependency-path: landing/package-lock.json
25+
- name: Install node dependencies
26+
working-directory: landing
27+
run: npm install
28+
- name: Build landing page
29+
working-directory: landing
30+
run: npm run build
31+
32+
- name: Publish generated content to GitHub Pages
33+
uses: JamesIves/github-pages-deploy-action@releases/v3
34+
with:
35+
FOLDER: landing/dist
36+
BRANCH: gh-pages
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)