Skip to content

Commit ed517f7

Browse files
committed
Replace travis by GitHub Actions
1 parent 08a5bf7 commit ed517f7

File tree

2 files changed

+44
-31
lines changed

2 files changed

+44
-31
lines changed

.github/workflows/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deployment
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 4 * * *'
8+
9+
jobs:
10+
deployment:
11+
name: deployment
12+
runs-on: ubuntu-18.04
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Install
16+
run: |
17+
source <(wget -O - https://raw.githubusercontent.com/tue-robotics/tue-env/master/installer/bootstrap.bash) || true
18+
tue-get install tue-documentation-github --no-ros-deps --doc-depend
19+
MSG_PKGS=($(./.ci/get_message_packages.py base_local_planner costmap_2d)) # Skip base_local_planner and costmap_2d as these take too much time
20+
echo "MSG_PKGS= ${MSG_PKGS[@]}"
21+
MSG_TARGETS=(${MSG_PKGS[@]/#/ros-})
22+
tue-get install ros-python_orocos_kdl ${MSG_TARGETS[@]} # Needs to be installed fully as it needs to be build to generate docs
23+
export ROS_PACKAGE_PATH=""
24+
- name: Script
25+
run: |
26+
source ~/.tue/setup.bash
27+
tue-make --no-status python_orocos_kdl ${MSG_PKGS[@]} # Needs to be build to generate docs
28+
source ~/.tue/setup.bash # Source the workspace
29+
tue-make-documentation --no-status
30+
- name: Before Deploy
31+
if: ${{ (github.event_name == 'schedule' || github.event_name == 'push') && github.ref == 'refs/heads/master' }}
32+
run: |
33+
source ~/.tue/setup.bash
34+
cp -r $TUE_SYSTEM_DIR/docs .
35+
- name: Deploy
36+
if: ${{ (github.event_name == 'schedule' || github.event_name == 'push') && github.ref == 'refs/heads/master' }}
37+
uses: peaceiris/actions-gh-pages@v3
38+
with:
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
publish_dir: .
41+
destination_dir: .
42+
exclude_assets: '.github,.ci'
43+
enable_jekyll: true
44+
force_orphan: true

.travis.yml

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

0 commit comments

Comments
 (0)