Restore Snap publish (#154)

This commit is contained in:
Antonio Cuadros
2022-06-13 15:09:07 +02:00
committed by GitHub
parent 70f9cf7ddb
commit 096d54a5e9
+15
View File
@@ -33,3 +33,18 @@ jobs:
with: with:
name: micro-ros-agent-snap name: micro-ros-agent-snap
path: ${{ steps.build-snap.outputs.snap }} path: ${{ steps.build-snap.outputs.snap }}
publish:
if: github.ref == 'refs/heads/foxy' || startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v3
with:
name: micro-ros-agent-snap
path: .
- uses: snapcore/action-publish@v1
with:
store_login: ${{ secrets.STORE_LOGIN }}
snap: ${{needs.build.outputs.snap-file}}
release: ${{ startsWith(github.ref, 'refs/tags/') && 'candidate' || 'edge'}}