fix: getRecentBlockhash deprecated #19
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
name: Development Build and Deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- '.github/workflows/**' | |
- '**.md' | |
env: | |
URL: widget.staking.kiwi | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: | |
name: production | |
url: https://${{ env.URL }} | |
steps: | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
# https://github.com/actions/checkout#push-a-commit-using-the-built-in-token | |
- name: Set GitHub Actions as Commit Author | |
run: | | |
git config --global user.name github-actions | |
git config --global user.email [email protected] | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
with: | |
path: 'build' | |
- name: Build | |
run: | | |
cd build | |
yarn | |
yarn build:staging | |
cp dist/index.html dist/404.html | |
echo ${{ env.URL }} > dist/CNAME | |
yarn run deploy:gh-pages |