mirror of
https://github.com/micro-ROS/micro-ROS-Agent.git
synced 2026-09-06 09:55:15 +02:00
Fix/snap version (#162)
* fix(snap): grade and version should be from the part * CI(snap): need git history for latest git tag * ci(snap): use new action-publish crendential system * ignore snap
This commit is contained in:
@@ -17,6 +17,9 @@ jobs:
|
||||
snap-file: ${{ steps.build-snap.outputs.snap }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
# full history for latest tag name
|
||||
fetch-depth: 0
|
||||
- uses: snapcore/action-build@v1
|
||||
id: build-snap
|
||||
with:
|
||||
@@ -44,7 +47,8 @@ jobs:
|
||||
name: micro-ros-agent-snap
|
||||
path: .
|
||||
- uses: snapcore/action-publish@v1
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
|
||||
with:
|
||||
store_login: ${{ secrets.STORE_LOGIN }}
|
||||
snap: ${{needs.build.outputs.snap-file}}
|
||||
release: ${{ startsWith(github.ref, 'refs/tags/') && 'candidate' || 'edge'}}
|
||||
|
||||
Reference in New Issue
Block a user