diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 20a6b51..6de525b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/forge.config.ts b/forge.config.ts index 4474f8a..60e4ce7 100644 --- a/forge.config.ts +++ b/forge.config.ts @@ -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({