Skip to content

Commit

Permalink
add deployment environment for develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sschiessl-bcp committed Mar 18, 2022
1 parent c19b2d9 commit fd99821
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release-binaries.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Bitshares-ui
name: Build local wallet

on:
push:
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/npm-build-and-deploy-develop.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/npm-build-and-deploy-staging.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/npm-build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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@v3
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 }}

0 comments on commit fd99821

Please sign in to comment.