Skip to content

Commit c1edc63

Browse files
committed
Add an action to deploy the github pages automatically
1 parent 06806e2 commit c1edc63

File tree

7 files changed

+51
-259
lines changed

7 files changed

+51
-259
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Copyright 2025 Open Source Robotics Foundation, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: build-and-deploy-rcr-ui
16+
run-name: ${{ github.actor }} tests code against a linux amd64 platform.
17+
on: [push]
18+
permissions:
19+
contents: write
20+
jobs:
21+
checkout-setup-build-test:
22+
runs-on: ubuntu-24.04
23+
steps:
24+
25+
# Install necessary platform tooling
26+
- name: Install platform tooling
27+
timeout-minutes: 10
28+
run: |
29+
sudo apt-get -qq npm
30+
sudo npm install -g pnpm
31+
32+
# Checkout this repository and all submodules.
33+
- name: Checkout repository and submodules
34+
uses: actions/checkout@v4
35+
with:
36+
submodules: true
37+
38+
# Build the ROS examples.
39+
- name: Install project dependencies
40+
run: pnpm install
41+
42+
# Test the distribution.
43+
- name: Generate static web pages
44+
run: pnpm run build
45+
46+
# Deploy to github pages
47+
- name: Deploy to github pages
48+
uses: JamesIves/github-pages-deploy-action@v4
49+
with:
50+
folder: out

.github/workflows/deploy.yml

Lines changed: 0 additions & 87 deletions
This file was deleted.

.github/workflows/fetch_repo_metadata.sh

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/fetch_repo_metadata.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 0 additions & 88 deletions
This file was deleted.

.github/workflows/trigger-via-bcr.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

data/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const MODULES_ROOT_DIR = path.join(
1111
process.cwd(),
1212
'data',
1313
'ros-central-registry',
14+
'docs',
1415
'modules'
1516
)
1617

0 commit comments

Comments
 (0)