Skip to content

Commit

Permalink
feat: automated .snap publishing
Browse files Browse the repository at this point in the history
This workflow is triggered when a new release is published.
It assumes `.snap` is attached to the release, downloads it and then
publishes it to Snapcraft at https://snapcraft.io/ipfs-desktop

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
  • Loading branch information
lidel committed Oct 7, 2020
1 parent dad5ef9 commit 881085d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/snapcraft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: snapcraft

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Download .snap artifact
uses: dsaltares/fetch-gh-release-asset@aa37ae5c44d3c9820bc12fe675e8670ecd93bd1c # 0.0.5
with:
repo: ipfs-shipyard/ipfs-desktop
version: tags/${{ github.event.release.tag_name }}
file: ipfs-desktop-${{ github.event.release.name }}-linux-amd64.snap

- name: Publish to Snapcraft
uses: snapcore/action-publish@f1879414dc5500e02a36f3d715bca6ddd438c913 # 1.0.2
with:
store_login: ${{ secrets.SNAP_STORE_LOGIN }}
snap: ipfs-desktop-${{ github.event.release.name }}-linux-amd64.snap
release: stable

0 comments on commit 881085d

Please sign in to comment.