Skip to content

Commit 05f3883

Browse files
committed
chore: Update release instructions for snaps
1 parent e2e3d1d commit 05f3883

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

assets/chezmoi.io/docs/developer-guide/releases.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,30 @@ packages, and snaps, creates a new [GitHub Release][release], and deploys the
3535
Publishing [Snaps][snaps] requires a `SNAPCRAFT_STORE_CREDENTIALS` [repository
3636
secret][secret].
3737

38-
Snapcraft store credentials periodically expire. Create new snapcraft store
39-
credentials by running:
38+
Snapcraft store credentials periodically expire. This is visible in the release
39+
GitHub Action reporting:
40+
41+
```
42+
Run snapcraft whoami
43+
Store operation failed:
44+
- macaroon-authorization-required: The request is missing an Authorization header field containing a valid macaroon
45+
```
46+
47+
Create new snapcraft store credentials by running:
4048

4149
```sh
4250
snapcraft export-login --snaps=chezmoi --channels=stable,candidate,beta,edge --acls=package_upload -
4351
```
4452

53+
This command requires a Ubuntu machine with snapcraft installed and a keyring,
54+
which is typically not available over SSH connections. Login to a GNOME session
55+
on a Ubuntu machine and run:
56+
57+
```sh
58+
sudo snap install --classic snapcraft
59+
snapcraft login
60+
```
61+
4562
### Homebrew
4663

4764
[Homebrew][homebrew] automation will automatically detect new releases of chezmoi within

0 commit comments

Comments
 (0)