-
Notifications
You must be signed in to change notification settings - Fork 68
41 lines (36 loc) · 1.02 KB
/
development.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
name: Build & deploy 🔥 Ambire Wallet 🔥 (staging 🧪🔬)
on:
push:
branches:
- development
permissions:
contents: write
jobs:
build:
name: Build & Deploy - (staging 🧪🔬)
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Add SSH key to chekout a private repo
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- name: Checkout code 🛎️
uses: actions/checkout@v3
- name: Install Node.js ⚙️
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install NPM packages ♾️🕳️
run: npm ci
- name: Build project 🛠️
run: npm run build
- name: Deploy 🚀🌕 (staging 🧪🔬)
if: github.ref == 'refs/heads/development'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
target-folder: staging
cname: wallet.ambire.com