forked from PX4/px4_msgs
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 948 Bytes
/
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
name: Release DEB package
on:
release:
types: [published]
jobs:
build-debian:
runs-on: ARM64
container: ros:foxy
steps:
- uses: actions/checkout@v3
- run: |
sudo apt -y update
sudo apt install -y dh-make fakeroot
- 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-px4-msgs*.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-px4-msgs