Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel86 authored Sep 7, 2024
1 parent 3b2f8c9 commit e2b3e91
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,6 @@ jobs:
run: |
cd $GITHUB_WORKSPACE/ros_ws/build_isolated/knowrob
cpack
- name: Upload debian package
if: github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: KnowRob debian package
path: ./ros_ws/build_isolated/knowrob/knowrob-*.deb
- name: Release debian package
if: github.event_name == 'release'
shell: bash
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
run: |
cd $GITHUB_WORKSPACE/ros_ws/build_isolated/knowrob
gh release upload ${{github.event.release.tag_name}} knowrob-*.deb
- name: Run unit tests
if: github.event_name == 'push' || github.event_name == 'pull_request'
shell: bash
Expand Down Expand Up @@ -105,3 +91,24 @@ jobs:
TARGET_FOLDER: ${{ env.KNOWROB_DOCU_VERSION }}
CLEAN: true
SINGLE_COMMIT: true
#####
- name: Release debian package
if: github.event_name == 'release'
shell: bash
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
run: |
# cd $GITHUB_WORKSPACE/ros_ws/build_isolated/knowrob
cd $GITHUB_WORKSPACE/ros_ws/src/knowrob
gh release upload ${{github.event.release.tag_name}} ../../build_isolated/knowrob/knowrob-*.deb
- name: Upload debian package
if: github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: debian package
path: ./ros_ws/build_isolated/knowrob/knowrob-*.deb
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test results
path: ./gtest-knowrob.xml

0 comments on commit e2b3e91

Please sign in to comment.