-
Notifications
You must be signed in to change notification settings - Fork 570
49 lines (44 loc) · 1.73 KB
/
npm-build-and-deploy.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
# This workflow will do a clean install of node dependencies, build the source code and push the binaries to the deployment repository.
name: Build & deploy web wallet
on:
push:
branches: [develop, staging, master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.13.1
uses: actions/setup-node@v1
with:
node-version: 16.13.1
- run: corepack enable
- run: yarn install --network-concurrency 1 --frozen-lockfile
- run: yarn run build-hash
- uses: actions/upload-artifact@v3
with:
name: build-hash-binaries
path: build/hash-history
deployment:
needs: build
runs-on: ubuntu-latest
environment:
name: ${{ github.ref_name }}
steps:
- uses: actions/download-artifact@v4
with:
name: build-hash-binaries
path: build/hash-history
- name: Create CNAME file
uses: finnp/create-file-action@master
env:
FILE_NAME: build/hash-history/CNAME
FILE_DATA: ${{ secrets.DEPLOYMENT_URL }}
- name: Push to target repository
uses: s0/git-publish-subdir-action@master
env:
REPO: [email protected]:bitshares/${{ secrets.DEPLOYMENT_REPOSITORY }}.git
BRANCH: master
FOLDER: build/hash-history
SSH_PRIVATE_KEY: ${{ secrets.DEPLOYMENT_KEY }}
MESSAGE: Automatic build of commit https://github.com/bitshares/bitshares-ui/commit/${{ github.sha }}