Skip to content
Merged
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
32 changes: 32 additions & 0 deletions .github/workflows/landing-build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Live-debugger landing page build check
on:
pull_request:
paths:
- ".github/workflows/landing-build-check.yml"
- landing/**
merge_group:
branches:
- main
workflow_call:
workflow_dispatch:

jobs:
live-debugger-landing-build-check:
if: github.repository == 'software-mansion/live-debugger'
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
with:
submodules: "true"
- name: Use Node.js
uses: actions/setup-node@v4
with:
cache: "npm"
cache-dependency-path: landing/package-lock.json
- name: Install node dependencies
working-directory: landing
run: npm install
- name: Build landing page
working-directory: landing
run: npm run build
37 changes: 37 additions & 0 deletions .github/workflows/landing-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Live-debugger landing page publish
on:
push:
paths:
- ".github/workflows/landing-publish.yml"
- landing/**
branches:
- main
workflow_dispatch:

jobs:
live-debugger-landing-publish:
if: github.repository == 'software-mansion/live-debugger'
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
with:
submodules: "true"
- name: Use Node.js
uses: actions/setup-node@v4
with:
cache: "npm"
cache-dependency-path: landing/package-lock.json
- name: Install node dependencies
working-directory: landing
run: npm install
- name: Build landing page
working-directory: landing
run: npm run build

- name: Publish generated content to GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
FOLDER: landing/dist
BRANCH: gh-pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}