Skip to content

Commit f489c82

Browse files
authored
feat(ci): automated Snapcraft publishing (#1678)
1 parent 52f2c24 commit f489c82

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/snapcraft.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: snapcraft
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Download .snap artifact
13+
uses: dsaltares/fetch-gh-release-asset@aa37ae5c44d3c9820bc12fe675e8670ecd93bd1c # 0.0.5
14+
with:
15+
repo: ipfs-shipyard/ipfs-desktop
16+
version: tags/${{ github.event.release.tag_name }}
17+
file: ipfs-desktop-${{ github.event.release.name }}-linux-amd64.snap
18+
19+
- name: Publish to Snapcraft
20+
uses: snapcore/action-publish@f1879414dc5500e02a36f3d715bca6ddd438c913 # 1.0.2
21+
with:
22+
store_login: ${{ secrets.SNAP_STORE_LOGIN }}
23+
snap: ipfs-desktop-${{ github.event.release.name }}-linux-amd64.snap
24+
release: stable

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Other languages are periodically pulled from [Transifex](https://www.transifex.c
130130
- The `latest.yml, latest-mac.yml, latest-linux.yml` files on the release are used by the app to determine when an app update is available.
131131
- Update links and badges in `README` to point to the new version (`A.B.C`)
132132
- Update selected package managers
133-
- Update [Snap](https://snapcraft.io/ipfs-desktop).
133+
- Wait for Github Action to finish and confirm it updated [Snap](https://snapcraft.io/ipfs-desktop).
134134
- Update [Homebrew Cask](https://github.com/Homebrew/homebrew-cask/blob/master/CONTRIBUTING.md#updating-a-cask).
135135
- Update Chocolatey package:
136136
1. Wait for the artefact on the [releases page](https://github.com/ipfs-shipyard/ipfs-desktop/releases)

0 commit comments

Comments
 (0)