-
Notifications
You must be signed in to change notification settings - Fork 72
47 lines (46 loc) · 1.45 KB
/
deb_package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: deb-package
on:
push:
tags:
- '*'
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: rm-controls/rm_control
path: 'rm_control'
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: noetic
- name: Package deb
uses: gdut-dynamic-x/ros-build-deb-action@v1
with:
ros_distro: noetic
timestamp: true
- name: Upload deb package to source
if: ${{ github.repository == 'rm-controls/rm_controllers' }}
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SOURCE_SSH_HOST }}
username: ${{ secrets.SOURCE_SSH_NAME }}
key: ${{ secrets.SOURCE_SSH_KEYGEN }}
port: ${{ secrets.SOURCE_SSH_PORT }}
source: "*.deb"
target: "/home/dynamicx/package_hub/wwwroot/ppa/incoming"
- name: Deploy deb package to source
if: ${{ github.repository == 'rm-controls/rm_controllers' }}
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SOURCE_SSH_HOST }}
username: ${{ secrets.SOURCE_SSH_NAME }}
key: ${{ secrets.SOURCE_SSH_KEYGEN }}
port: ${{ secrets.SOURCE_SSH_PORT }}
script: |
cd /home/dynamicx/package_hub/wwwroot/ppa/
bash deploy.sh