-
Notifications
You must be signed in to change notification settings - Fork 19
56 lines (46 loc) · 1.42 KB
/
release.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Release
on:
push:
tags:
- "*"
env:
RELEASE_ENV: true
WIGWAM_STATIC_CDN: ${{ secrets.WIGWAM_STATIC_CDN }}
WIGWAM_INDEXER_API: ${{ secrets.WIGWAM_INDEXER_API }}
WIGWAM_INDEXER_API_KEY: ${{ secrets.WIGWAM_INDEXER_API_KEY }}
WIGWAM_INFURA_API_KEY: ${{ secrets.WIGWAM_INFURA_API_KEY }}
WIGWAM_ANALYTICS_API_KEY: ${{ secrets.WIGWAM_ANALYTICS_API_KEY }}
WIGWAM_OPEN_LOGIN_CLIENT_ID: ${{ secrets.WIGWAM_OPEN_LOGIN_CLIENT_ID }}
WIGWAM_ON_RAMP_API_KEY: ${{ secrets.WIGWAM_ON_RAMP_API_KEY }}
WIGWAM_ON_RAMP_API_URL: ${{ secrets.WIGWAM_ON_RAMP_API_URL }}
jobs:
release:
name: Create release
runs-on: ubuntu-latest
environment: production
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
- name: Install deps
run: yarn install --frozen-lockfile
- name: Check TypeScript
run: yarn ts
- name: Check ESLint
run: yarn lint
- name: Run tests
run: yarn test
- name: Create app build
run: yarn build:chrome & yarn build:firefox
- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
files: |
dist/prod/chrome.zip
dist/prod/firefox.xpi