Skip to content

Commit e189180

Browse files
Update release.yml
1 parent 686b3c2 commit e189180

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ jobs:
6666
run: |
6767
sudo snap install snapcraft --classic
6868
echo "/snap/bin" >> $GITHUB_PATH
69-
mkdir -p .snapcraft
70-
echo "${{ secrets.snapcraft_token }}" > .snapcraft/snapcraft.cfg
7169
- name: Make
7270
if: startsWith(github.ref, 'refs/tags/')
7371
run: pnpm make
@@ -85,7 +83,9 @@ jobs:
8583
find out/ -name "*.snap" -o -name "*snap*" | head -10
8684
- name: Publish Snap to Snap Store
8785
if: matrix.os == 'ubuntu-22.04' && startsWith(github.ref, 'refs/tags/')
88-
run: snapcraft push $(find out/make/snap/x64/ -name "swach_*_amd64.snap") --release latest/stable
86+
run: snapcraft upload $(find out/make/snap/x64/ -name "swach_*_amd64.snap") --release latest/stable
87+
env:
88+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.snapcraft_token }}
8989
# - name: Make Apple arm64
9090
# if: matrix.os == 'macos-11.0' && startsWith(github.ref, 'refs/tags/')
9191
# run: pnpm make --arch=arm64

0 commit comments

Comments
 (0)