Remove Unused Libraries, Unifying Files Naming and Update README.md Files #721
Workflow file for this run
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
# This action deploys a draft deployment using Netlify to view changes prior to being | |
# merged. This does NOT deploy to production site and will only be triggered | |
# on changes in the specified paths below. | |
name: deploy-bridge-dapp π | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: [develop] | |
paths: | |
- 'apps/bridge-dapp/**' | |
workflow_dispatch: | |
jobs: | |
preview: | |
runs-on: ubuntu-latest | |
if: github.ref != 'refs/heads/develop' && github.event.pull_request.draft == false | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/[email protected] | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn install | |
- name: create env file | |
run: | | |
touch apps/bridge-dapp/.env | |
echo NX_BRIDGE_APP_DOMAIN=${{ secrets.NX_BRIDGE_APP_DOMAIN }} >> apps/bridge-dapp/.env | |
echo HOSTED_ORBIT_MULTLICALL3_ADDRESS=${{ secrets.HOSTED_ORBIT_MULTLICALL3_ADDRESS }} >> apps/bridge-dapp/.env | |
echo ATHENA_ORBIT_MULTICALL3_DEPLOYMENT_BLOCK=${{ secrets.ATHENA_ORBIT_MULTICALL3_DEPLOYMENT_BLOCK }} >> apps/bridge-dapp/.env | |
echo HERMES_ORBIT_MULTICALL3_DEPLOYMENT_BLOCK=${{ secrets.HERMES_ORBIT_MULTICALL3_DEPLOYMENT_BLOCK }} >> apps/bridge-dapp/.env | |
echo DEMETER_ORBIT_MULTICALL3_DEPLOYMENT_BLOCK=${{ secrets.DEMETER_ORBIT_MULTICALL3_DEPLOYMENT_BLOCK }} >> apps/bridge-dapp/.env | |
- name: Build project | |
run: yarn build:bridge | |
- name: Deploy to Netlify | |
id: deploy-netlify | |
uses: netlify/actions/cli@master | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_BRIDGE_SITE_ID }} | |
with: | |
args: deploy context=deploy-preview site=$NETLIFY_BRIDGE_SITE_ID --dir=./dist/apps/bridge-dapp/ | |
- name: Netlify Preview URL | |
uses: unsplash/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OUTPUT: | | |
<span aria-hidden="true">β </span> Deploy Preview for *bridge-dapp development* is ready! Thanks for the contribution @${{ github.actor }} | |
| Name | Link | | |
|---------------------------------|------------------------| | |
|<span aria-hidden="true">π¨</span> Latest commit | [${{ github.event.pull_request.head.sha }}](https://github.com/webb-tools/webb-dapp/commit/${{ github.event.pull_request.head.sha }}) | | |
|<span aria-hidden="true">π</span> Latest deploy log | ${{ steps.deploy-netlify.outputs.NETLIFY_LOGS_URL }} | | |
|<span aria-hidden="true">π</span> Deploy Preview | [${{ steps.deploy-netlify.outputs.NETLIFY_URL }}](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}) | | |
--- | |
_To edit notification comments on pull requests, go to your [Netlify site settings](https://app.netlify.com/sites/development-hubble-bridge/settings/deploys#deploy-notifications)._ | |
with: | |
msg: ${{ env.OUTPUT }} | |
check_for_duplicate_msg: false # OPTIONAL |