-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (40 loc) · 1.5 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
name: Release
on:
push:
tags:
- 'v*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
VITE_CHAIN_ID: ${{ secrets.VITE_CHAIN_ID }}
VITE_LENS_API: ${{ secrets.VITE_LENS_API }}
VITE_LENS_HUB_CONTRACT: ${{ secrets.VITE_LENS_HUB_CONTRACT }}
VITE_LENS_PREVIEW_NODE: ${{ secrets.VITE_LENS_PREVIEW_NODE }}
VITE_ENS_REVERSE_RECORDS: ${{ secrets.VITE_ENS_REVERSE_RECORDS }}
VITE_INFURA_PROJECT_ID: ${{ secrets.VITE_INFURA_PROJECT_ID }}
VITE_INFURA_IPFS_PROJECT_ID: ${{ secrets.VITE_INFURA_IPFS_PROJECT_ID }}
VITE_INFURA_IPFS_PROJECT_SECRET: ${{ secrets.VITE_INFURA_IPFS_PROJECT_SECRET }}
VITE_INFURA_GATEWAY_URL: ${{ secrets.VITE_INFURA_GATEWAY_URL }}
VITE_GIPHY_KEY: ${{ secrets.VITE_GIPHY_KEY }}
VITE_WALLETCONNECT_PROJECT_ID: ${{ secrets.VITE_WALLETCONNECT_PROJECT_ID }}
VITE_ALCHEMY_ETH_API_KEY: ${{ secrets.VITE_ALCHEMY_ETH_API_KEY }}
VITE_ALCHEMY_MATIC_API_KEY: ${{ secrets.VITE_ALCHEMY_MATIC_API_KEY }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install and Build
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: |
npm ci
npm run build
- name: Create Zip
run: zip -r focalize-${{ github.ref_name }}.zip dist
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
artifacts: "focalize-${{ github.ref_name }}.zip"
token: ${{ secrets.GITHUB_TOKEN }}