forked from Slamtec/sllidar_ros2
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.62 KB
/
release.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
name: Release DEB package
on:
release:
types: [published]
jobs:
build-debian:
runs-on: ARM64
container: asia-docker.pkg.dev/clearbot-360312/clearbot-public/ros-foxy-fastrtpsgen:latest
steps:
- uses: actions/checkout@v3
- name: Setup apt repo
env:
APTSERVER_USER: ${{ secrets.APTSERVER_USER }}
APTSERVER_PASSWORD: ${{ secrets.APTSERVER_PASSWORD }}
run: |
sudo apt -y update
sudo apt install -y wget software-properties-common curl
wget -qO - https://aptserver.clearbot.dev/pubkey | sudo apt-key add -
echo "machine https://aptserver.clearbot.dev\nlogin $APTSERVER_USER\npassword $APTSERVER_PASSWORD" >> /etc/apt/auth.conf.d/clearbot.conf
sudo add-apt-repository 'deb https://aptserver.clearbot.dev focal main'
- name: Install dependencies
run: |
sudo apt -y update
sudo apt install -y dh-make fakeroot ros-foxy-clearbot-px4-msgs ros-foxy-clearbot-msgs
- name: fakeroot
run: fakeroot debian/rules binary
- name: Debian file
id: deb-file-name
run: |
cd .. && echo DEB_FILE="$(pwd)/$(find . -name "ros-foxy-clearbot-sllidar-ros2*.deb" | sed -r 's/^.{2}//')" >> "$GITHUB_OUTPUT"
- name: Upload to aptserver
env:
APTSERVER_USER: ${{ secrets.APTSERVER_USER }}
APTSERVER_PASSWORD: ${{ secrets.APTSERVER_PASSWORD }}
FILENAME: ${{ steps.deb-file-name.outputs.DEB_FILE }}
run: cd .. && curl -X POST -u $APTSERVER_USER:$APTSERVER_PASSWORD -F file=@$FILENAME https://aptserver.clearbot.dev/api/files/clearbot-sllidar-ros2