Skip to content

Commit

Permalink
chore: deploy Namadillo and extension on main merge (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
emccorson committed Aug 30, 2024
1 parent 976fe32 commit 5901f3e
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions .github/workflows/deploy-wallet-at-merge-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ on:
- main

env:
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
CI: false

jobs:
build:
name: Build and deploy Namadillo and extension
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -24,24 +29,44 @@ jobs:
- name: Install protoc
run: sudo apt-get install -y protobuf-compiler

- name: build the site
- 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_ALIAS: "Namada Devnet"
NAMADA_INTERFACE_NAMADA_CHAIN_ID: "internal-devnet-6be.86067e06a5"
NAMADA_INTERFACE_NAMADA_URL: "https://proxy.heliax.click/internal-devnet-6be.86067e06a5"
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
if: false
uses: nwtgck/actions-netlify@v1.2.3
with:
publish-dir: "./apps/namadillo/dist"
production-branch: main
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 }}
# https://namada-interface-dev.netlify.app/
NETLIFY_SITE_ID: 2380782e-9b20-477a-bc27-b4e9d05e16f3

rust-unit-test-js-cache:
Expand Down

1 comment on commit 5901f3e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.