-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.48 KB
/
build-debian-stable.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
name: Deploy Debian Stable
on:
workflow_dispatch:
release:
types: [created]
jobs:
deploy-debian-stable:
runs-on: ubuntu-20.04
steps:
- name: Checkout this repository
uses: actions/[email protected]
with:
path: ninshiki_cpp
- name: Add stable Debian repository and rosdep sources list
run: |
sudo apt update && sudo apt install curl
curl -s ${{ secrets.SERVER_BASE_URL }}/debian/setup.bash | bash -s
curl -s ${{ secrets.SERVER_BASE_URL }}/rosdep/setup.bash | bash -s
- name: Build stable Debian package
uses: ichiro-its/ros2-build-debian-action@main
- name: Deploy stable Debian package to server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASS }}
source: "package/*.deb"
target: "~/temp/stable/ninshiki_cpp/"
rm: true
- name: Prepare stable Debian package in the server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASS }}
script: |
cd ${{ secrets.SERVER_REPO_DIR }}/debian
reprepro includedeb stable ~/temp/stable/ninshiki_cpp/package/*.deb
rm -rf ~/temp/stable/ninshiki_cpp/