-
-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (39 loc) · 1.11 KB
/
delivery.yml
File metadata and controls
49 lines (39 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Push snap
on:
workflow_dispatch:
inputs:
version:
description: 'Which version to publish to snapstore'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set Environment Variables
uses: tw3lveparsecs/github-actions-setvars@v0.1
with:
envFilePath: ./envvars.for.actions
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: install
run: npm install
- name: lint
run: npm run lint
- name: build
env:
NODE_OPTIONS: --openssl-legacy-provider
run: npm run build
- name: package
run: npm run package
- name: publish snap
uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
store_login: ${{ secrets.STORE_LOGIN }}
snap: "dist/json-tool_${{ github.event.inputs.version }}_amd64.snap"
release: beta,candidate,stable