-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.53 KB
/
build-debian-nightly.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
name: Deploy Debian Nightly
on:
workflow_dispatch:
push:
branches: [master]
jobs:
deploy-debian-nightly:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/[email protected]
with:
path: gyakuenki
- name: Add nightly Debian repository and rosdep sources list
run: |
sudo apt update && sudo apt install curl
curl -s http://repository.ichiro-its.org/debian/setup-nightly.bash | bash -s
curl -s http://repository.ichiro-its.org/rosdep/setup.bash | bash -s
- name: Build nightly Debian package
uses: ichiro-its/ros2-build-debian-action@main
with:
unique-version: true
- name: Deploy nightly 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/nightly/gyakuenki/"
rm: true
- name: Prepare nightly 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 nightly ~/temp/nightly/gyakuenki/package/*.deb
rm -rf ~/temp/nightly/gyakuenki/