-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 1.15 KB
/
main.yml
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
name: Release app
on:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os:
[
{ name: 'linux', image: 'ubuntu-latest' },
{ name: 'windows', image: 'windows-latest' },
{ name: 'macos', image: 'macos-latest' },
]
runs-on: ${{ matrix.os.image }}
steps:
- name: Github checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
env:
VITE_CLOUDANT_URL: ${{ secrets.VITE_CLOUDANT_URL }}
VITE_CLOUDANT_API_KEY: ${{ secrets.VITE_CLOUDANT_API_KEY }}
- name: Package app
env:
VITE_CLOUDANT_URL: ${{ secrets.VITE_CLOUDANT_URL }}
VITE_CLOUDANT_API_KEY: ${{ secrets.VITE_CLOUDANT_API_KEY }}
run: npm run package
- name: Make app
env:
VITE_CLOUDANT_URL: ${{ secrets.VITE_CLOUDANT_URL }}
VITE_CLOUDANT_API_KEY: ${{ secrets.VITE_CLOUDANT_API_KEY }}
run: npm run make
- name: Publish app
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: npm run publish