Skip to content

chore: deploy Namadillo and extension on main merge #3377

chore: deploy Namadillo and extension on main merge

chore: deploy Namadillo and extension on main merge #3377

name: PR checks
on:
pull_request:
env:
CI: false
YARN_ENABLE_HARDENED_MODE: 0
INDEXER_URL: https://indexer.public.heliax.work/internal-devnet-43.35fd77a4447
RPC_URL: https://proxy.public.heliax.work/internal-devnet-43.35fd77a4447
CHAIN_ID: internal-devnet-43.35fd77a4447
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install yarn dependencies
uses: ./.github/actions/yarn-cache
- name: Restore Rust cache
uses: ./.github/actions/rust-cache
with:
cache-name: build
- name: Install protoc
run: sudo apt-get install -y protobuf-compiler
- name: Build Namadillo
working-directory: ./apps/namadillo
run: yarn build
- name: Configure Namadillo
working-directory: ./apps/namadillo
run: |
echo "" > dist/config.toml
echo "indexer_url = \"${{ env.INDEXER_URL }}\"" >> dist/config.toml
echo "rpc_url = \"${{ env.RPC_URL }}\"" >> dist/config.toml
- name: Build the Chrome extension
working-directory: ./apps/extension
run: yarn build:chrome
env:
NAMADA_INTERFACE_NAMADA_CHAIN_ID: ${{ env.CHAIN_ID }}
- name: Build the Firefox extension
working-directory: ./apps/extension
run: yarn build:firefox
env:
NAMADA_INTERFACE_NAMADA_CHAIN_ID: ${{ env.CHAIN_ID }}
- name: Copy the extensions for deployment
run: |
cp apps/extension/build/firefox/namada_extension-*.zip apps/namadillo/dist/namada-extension-firefox.zip
cp apps/extension/build/chrome/namada_extension-*.zip apps/namadillo/dist/namada-extension-chrome.zip
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: "./apps/namadillo/dist"
production-deploy: true
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Merged PR ${{ github.event.number }} to main"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN_WALLET_PREVIEW }}
NETLIFY_SITE_ID: 2380782e-9b20-477a-bc27-b4e9d05e16f3