Skip to content

Commit 13d1a55

Browse files
author
Aaron Roller
committed
added package and release feature/BB-772
1 parent 6e5ee89 commit 13d1a55

File tree

6 files changed

+79
-75
lines changed

6 files changed

+79
-75
lines changed

.github/actions/package@local/Dockerfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/actions/package@local/action.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/actions/package@local/entrypoint.sh

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/package.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release Candidate
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
jobs:
7+
package:
8+
runs-on: ubuntu-16.04
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Generate build number
12+
id: buildnumber
13+
uses: einaregilsson/build-number@v2
14+
with:
15+
token: ${{secrets.github_token}}
16+
- name: Package
17+
id: package
18+
uses: AutoModality/action-package-debian-ros@v1.1.0
19+
with:
20+
branch: ${{ github.event.pull_request.head.ref }}
21+
pull-request-number: ${{ github.event.number }}
22+
build-number: ${{ steps.buildnumber.outputs.build_number }}
23+
- name: The generated package
24+
run: echo "The artifact is ${{ steps.package.outputs.artifact-path }}"
25+
- name: Deploy
26+
id: deploy
27+
uses: AutoModality/action-cloudsmith@0.2.0
28+
with:
29+
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
30+
command: 'push'
31+
format: 'deb'
32+
owner: 'automodality'
33+
repo: 'dev'
34+
distro: 'ubuntu'
35+
release: 'xenial'
36+
file: '${{ steps.package.outputs.artifact-path }}'

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
package:
8+
runs-on: ubuntu-16.04
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Semantic Release
12+
uses: cycjimmy/semantic-release-action@v2
13+
id: semantic # `id` for output variables
14+
with:
15+
semantic_version: 15.14.0
16+
extra_plugins: |
17+
@semantic-release/git
18+
@semantic-release/changelog@3.0.0
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
- name: Package
22+
if: steps.semantic.outputs.new_release_published == 'true'
23+
id: package
24+
uses: AutoModality/action-package-debian-ros@v1.1.0
25+
with:
26+
version: ${{ steps.semantic.outputs.new_release_version }}
27+
- name: The generated package
28+
run: echo "The artifact is ${{ steps.package.outputs.artifact-path }}"
29+
- name: Deploy
30+
if: steps.semantic.outputs.new_release_published == 'true'
31+
id: deploy
32+
uses: AutoModality/action-cloudsmith@0.2.0
33+
with:
34+
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
35+
command: 'push'
36+
format: 'deb'
37+
owner: 'automodality'
38+
repo: 'release'
39+
distro: 'ubuntu'
40+
release: 'xenial'
41+
file: '${{ steps.package.outputs.artifact-path }}'

.github/workflows/story.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ name: Story Development
22

33
on:
44
push:
5-
branches:
6-
- '[A-Z]+-[0-9]+'
7-
- '[A-Z]+-[0-9]+/*'
8-
- 'feature/*'
5+
branches-ignore:
6+
- master
97
jobs:
108
build:
119
runs-on: ubuntu-16.04

0 commit comments

Comments
 (0)