Adds proposal table, proposal status container, fixes theme toggle and dropdown issue #304
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-stats-dapp π | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: [develop] | |
paths: | |
- 'apps/stats-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: ${{ secrets.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: Build project | |
run: yarn build:stats | |
# Fix: JavaScript heap out of memory | |
# https://github.com/actions/runner-images/issues/70#issuecomment-1191708172 | |
env: | |
NODE_OPTIONS: '--max_old_space_size=4096' | |
- 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_SITE_ID }} | |
with: | |
args: deploy context=deploy-preview site=$NETLIFY_SITE_ID --dir=./dist/apps/stats-dapp/ | |
- name: Netlify Preview URL | |
# Use master branch to fix issue with entrypoint.sh script | |
# https://github.com/unsplash/comment-on-pr/issues/51 | |
uses: unsplash/comment-on-pr@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OUTPUT: | | |
<span aria-hidden="true">β </span> Deploy Preview for *stats-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-stats/settings/deploys#deploy-notifications)._ | |
with: | |
msg: ${{ env.OUTPUT }} | |
check_for_duplicate_msg: false # OPTIONAL |