forked from PX4/px4_msgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add release.yml, fix github actions issue where container still has o…
…ld files
- Loading branch information
1 parent
f277dc6
commit 0c245a2
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Release DEB package | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-debian: | ||
runs-on: ARM64 | ||
container: ros:foxy | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Clear any debian files | ||
run: | | ||
cd .. && rm *.deb | ||
- 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 |