Skip to content

Commit

Permalink
chore: using snap action to distribute to edge channel
Browse files Browse the repository at this point in the history
  • Loading branch information
marabesi committed Oct 30, 2021
1 parent cdce4a6 commit 224e4db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Which version to publishto snapstore'
description: 'Which version to publish to snapstore'
required: true
create:
tags:
- v*

jobs:
build:
Expand All @@ -25,5 +22,12 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: install
run: npm install
- name: build
run: npm run build
- name: package
run: npm run package
- uses: snapcore/action-publish@v1
with:
store_login: ${{ secrets.STORE_LOGIN }}
snap: "json-tool_${{ github.event.inputs.version }}_amd64.snap"
release: edge
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"eject": "craco eject",
"dev": "concurrently -k \"BROWSER=none npm start\" \"npm:electron\"",
"setup": "npm run build && cp package.json ./build",
"package": "npm run setup && electron-builder --linux snap -p always",
"package": "npm run setup && electron-builder --linux snap -p never",
"electron": "npm run setup && wait-on tcp:3000 && electron build/",
"lint": "eslint ./**/*.{ts,tsx}"
},
Expand Down

0 comments on commit 224e4db

Please sign in to comment.