Skip to content

Commit fd99821

Browse files
committed
add deployment environment for develop
1 parent c19b2d9 commit fd99821

File tree

4 files changed

+49
-73
lines changed

4 files changed

+49
-73
lines changed

.github/workflows/build-release-binaries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release Bitshares-ui
1+
name: Build local wallet
22

33
on:
44
push:

.github/workflows/npm-build-and-deploy-develop.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/npm-build-and-deploy-staging.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and push the binaries to the deployment repository.
2+
name: Build & deploy web wallet
3+
4+
on:
5+
push:
6+
branches: [develop, staging, master]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Use Node.js 16.13.1
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 16.13.1
18+
- run: corepack enable
19+
- run: yarn install --network-concurrency 1 --frozen-lockfile
20+
- run: yarn run build-hash
21+
- uses: actions/upload-artifact@v3
22+
with:
23+
name: build-hash-binaries
24+
path: build/hash-history
25+
26+
deployment:
27+
needs: build
28+
runs-on: ubuntu-latest
29+
environment:
30+
name: ${{ github.ref_name }}
31+
32+
steps:
33+
- uses: actions/download-artifact@v3
34+
with:
35+
name: build-hash-binaries
36+
path: build/hash-history
37+
- name: Create CNAME file
38+
uses: finnp/create-file-action@master
39+
env:
40+
FILE_NAME: build/hash-history/CNAME
41+
FILE_DATA: ${{ secrets.DEPLOYMENT_URL }}
42+
- name: Push to target repository
43+
uses: s0/git-publish-subdir-action@master
44+
env:
45+
REPO: git@github.com:bitshares/${{ secrets.DEPLOYMENT_REPOSITORY }}.git
46+
BRANCH: master
47+
FOLDER: build/hash-history
48+
SSH_PRIVATE_KEY: ${{ secrets.DEPLOYMENT_KEY }}

0 commit comments

Comments
 (0)