Skip to content

Commit 096d54a

Browse files
authored
Restore Snap publish (#154)
1 parent 70f9cf7 commit 096d54a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/snap.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,18 @@ jobs:
3333
with:
3434
name: micro-ros-agent-snap
3535
path: ${{ steps.build-snap.outputs.snap }}
36+
37+
publish:
38+
if: github.ref == 'refs/heads/foxy' || startsWith(github.ref, 'refs/tags/')
39+
runs-on: ubuntu-latest
40+
needs: build
41+
steps:
42+
- uses: actions/download-artifact@v3
43+
with:
44+
name: micro-ros-agent-snap
45+
path: .
46+
- uses: snapcore/action-publish@v1
47+
with:
48+
store_login: ${{ secrets.STORE_LOGIN }}
49+
snap: ${{needs.build.outputs.snap-file}}
50+
release: ${{ startsWith(github.ref, 'refs/tags/') && 'candidate' || 'edge'}}

0 commit comments

Comments
 (0)