Removed erroneous (and unused) event definition #345
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
name: Deploy wallet preview to netlify at PR and pushes to it | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "apps/namada-interface/**" | |
- ".github/workflows/**" | |
env: | |
CI: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
working-directory: ./apps/namada-interface | |
run: yarn | |
- name: Install protoc | |
run: sudo apt-get install -y protobuf-compiler | |
- name: Install wasm-pack | |
uses: jetli/[email protected] | |
with: | |
version: "v0.10.3" | |
- name: build the site | |
uses: borales/actions-yarn@v4 | |
working-directory: ./apps/namada-interface | |
run: yarn build | |
env: | |
REACT_APP_NAMADA_ALIAS: "Namada Devnet" | |
REACT_APP_NAMADA_CHAIN_ID: "internal-devnet-6be.86067e06a5" | |
REACT_APP_NAMADA_URL: "https://proxy.heliax.click/internal-devnet-6be.86067e06a5" | |
- name: Deploy to Netlify | |
uses: nwtgck/[email protected] | |
with: | |
publish-dir: "./apps/namada-interface/build" | |
production-branch: main | |
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 | |
- name: Slack Notification | |
run: | | |
curl --header "Content-Type: application/json" \ | |
--request POST \ | |
--data '{"message":"https://wallet-preview-heliax-dev.netlify.app"}' \ | |
${{ secrets.SLACK_WEBHOOK_WALLET_RELEASE }} |