Skip to content

Commit

Permalink
try tu publish snapcraft manually
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeniau committed Oct 16, 2024
1 parent 3a38855 commit d89237d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,18 @@ jobs:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_PASSWORD: ${{ secrets.APPLE_APP_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
# for snapcraft
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
# For every platform
GITHUB_TOKEN: ${{ github.token }}

- name: Publish to snapcraft store manually
if: startsWith(matrix.os, 'ubuntu')
working-directory: out/make/snap/x64/
run: |
unsquashfs tiana-tables*.snap && \
chmod 755 ./squashfs-root/tiana-tables/chrome-sandbox && \
snapcraft pack ./squashfs-root && \
snapcraft push --release=latest/edge --verbose tiana-tables_*.snap
env:
# for snapcraft
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
12 changes: 6 additions & 6 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ const config: ForgeConfig = {
draft: true,
},
},
{
name: '@electron-forge/publisher-snapcraft',
config: {
release: 'latest/edge',
},
},
// {
// name: '@electron-forge/publisher-snapcraft',
// config: {
// release: 'latest/edge',
// },
// },
],
plugins: [
new VitePlugin({
Expand Down

0 comments on commit d89237d

Please sign in to comment.