Skip to content

Commit

Permalink
wip: poc of automated .snap publishing
Browse files Browse the repository at this point in the history
for now hardcoded, we will switch this to occur after release is
published

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

on: [push] # TODO: https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/

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/v0.13.0 # TODO: parameterize
file: ipfs-desktop-0.13.0-linux-amd64.snap # TODO

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

0 comments on commit 3dff95d

Please sign in to comment.