Skip to content

Merge pull request #30 from ichiro-its/feature/add-config-for-half-pivot #18

Merge pull request #30 from ichiro-its/feature/add-config-for-half-pivot

Merge pull request #30 from ichiro-its/feature/add-config-for-half-pivot #18

name: Deploy Debian Nightly
on:
workflow_dispatch:
push:
branches: [master]
jobs:
deploy-debian-nightly:
runs-on: ubuntu-20.04
steps:
- name: Checkout this repository
uses: actions/checkout@v2.3.4
with:
path: suiryoku
- name: Add nightly Debian repository and rosdep sources list
run: |
sudo apt update && sudo apt install curl
curl -s ${{ secrets.SERVER_BASE_URL }}/debian/setup-nightly.bash | bash -s
curl -s ${{ secrets.SERVER_BASE_URL }}/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/suiryoku/"
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/suiryoku/package/*.deb
rm -rf ~/temp/nightly/suiryoku/