We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c5aa84 commit 406c8ceCopy full SHA for 406c8ce
1 file changed
.github/workflows/release.yml
@@ -72,18 +72,24 @@ jobs:
72
73
- name: Install Snapcraft
74
uses: samuelmeuli/action-snapcraft@v2
75
- with:
76
- snapcraft_token: ${{ secrets.SNAPCRAFT_LOGIN }}
77
78
- name: Install LXD
79
run: |
80
sudo snap install lxd
81
sudo lxd waitready
82
- sudo lxd init --auto
+ sudo usermod -aG lxd $user
+ sudo chmod a+rw /var/snap/lxd/common/lxd/unix.socket
83
84
- name: Pack Snap
85
run: snapcraft pack
86
+ - name: Snapcraft Login
87
+ if: startsWith(github.ref, 'refs/tags/')
88
+ run: |
89
+ echo "${{ secrets.SNAPCRAFT_LOGIN }}" | base64 -d > snapcraft.creds
90
+ snapcraft login --with snapcraft.creds
91
+
92
93
- name: Upload Snap Artifact
94
uses: actions/upload-artifact@v4
95
with:
0 commit comments