Skip to content

Commit 74e99df

Browse files
authored
Fix: add cicd (#5)
1 parent bfc3643 commit 74e99df

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Build
22

33
on:
44
release:
5+
types: [created]
56
workflow_dispatch:
67

78
jobs:
@@ -16,14 +17,13 @@ jobs:
1617
with:
1718
path: src/coListener
1819

19-
- name: Get release version
20-
id: get_version
20+
- name: build
2121
run: |
2222
VERSION=${GITHUB_REF#refs/tags/}
23-
echo "$VERSION" > version
24-
25-
- name: build
26-
run: |
23+
echo -n "$VERSION" > src/coListener/version
24+
cat src/coListener/version
25+
sed -i "s|<version>.*</version>|<version>$VERSION</version>|" src/coListener/package.xml
26+
cat src/coListener/package.xml
2727
/ros_entrypoint.sh colcon build --packages-select coListener
2828
2929
- name: zip-artifact

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Lint
22

33
on:
4-
push:
4+
pull_request:
55

66
jobs:
77
flake8-lint:

package.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>coListener</name>
5-
<version>0.0.1</version>
5+
<version>1.0.0</version>
66
<description>error code listener</description>
77
<maintainer email="[email protected]">coffee</maintainer>
8-
<license>BSD</license>
8+
<license>Apache-2.0 license</license>
99

1010
<!-- Other dependencies -->
1111
<exec_depend>rclpy</exec_depend>

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
maintainer="fei",
2929
maintainer_email="[email protected]",
3030
description="error code listener",
31-
license="BSD",
31+
license="Apache-2.0 license",
3232
tests_require=["pytest"],
3333
entry_points={
3434
"console_scripts": ["coListener = coListener.main:main"],

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
0.9.0

0 commit comments

Comments
 (0)