-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add deployment environment for develop
- Loading branch information
1 parent
c19b2d9
commit b056a17
Showing
1 changed file
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,28 +9,40 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.13.1] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
- name: Use Node.js 16.13.1 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
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: develop.bitshares.org | ||
- name: Deploy | ||
FILE_DATA: ${{ secrets.DEPLOYMENT_URL }} | ||
- name: Push to target repository | ||
uses: s0/git-publish-subdir-action@master | ||
env: | ||
REPO: [email protected]:bitshares/develop.bitshares.org.git | ||
REPO: [email protected]:bitshares/${{ secrets.DEPLOYMENT_REPOSITORY }}.git | ||
BRANCH: master | ||
FOLDER: build/hash-history | ||
SSH_PRIVATE_KEY: ${{ secrets.AUTOMATION_UI_DEPLOYMENT_KEY }} |