forked from dji-sdk/Onboard-SDK
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (47 loc) · 1.44 KB
/
package.yml
File metadata and controls
47 lines (47 loc) · 1.44 KB
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
47
name: Release Candidate
on:
push:
branches-ignore:
- master
jobs:
package:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [[x64,self-hosted,linux, build], [arm64,self-hosted,linux, build]]
fail-fast: false
steps:
- uses: AutoModality/action-clean@v1.1.0
- uses: actions/checkout@v2
- uses: rlespinasse/github-slug-action@3.1.0 # for GITHUB_REF_SLUG
- name: Package
id: package
uses: AutoModality/action-package-debian-ros@v5-amros
with:
branch: ${{ env.GITHUB_REF_SLUG }}
build-number: ${{ github.run_number }}
release-repo-entitlement: ${{ secrets.CLOUDSMITH_READ_RELEASE_ENTITLEMENT }}
- name: The generated package
run: echo "The artifact is ${{ steps.package.outputs.artifact-path }}"
- name: Deploy
id: deploy
uses: AutoModality/action-cloudsmith@0.2.0
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
format: 'deb'
owner: 'automodality'
repo: 'dev'
distro: 'ubuntu'
release: 'bionic'
file: '${{ steps.package.outputs.artifact-path }}'
draft-pr:
runs-on: ubuntu-18.04
needs: package
steps:
- uses: actions/checkout@v2
- name: Draft a Pull Request
uses: repo-sync/pull-request@v2
with:
pr_draft: true
github_token: ${{ secrets.GITHUB_TOKEN }}