Skip to content

Commit

Permalink
Merge branch 'main' into feat/transfer-complete-state
Browse files Browse the repository at this point in the history
  • Loading branch information
euharrison committed Jan 14, 2025
2 parents c047fda + 786729b commit 904b65f
Show file tree
Hide file tree
Showing 42 changed files with 9,241 additions and 10,039 deletions.
38 changes: 38 additions & 0 deletions .github/actions/build-extension/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: build-extension
description: Build the browser extension and upload to Github release
on:
workflow_call:
inputs:
browser:
required: true
type: string
tag:
required: true
type: string

runs:
using: composite
steps:
- name: Install Dependencies
uses: ./.github/actions/prepare-build

- name: Build WASM dependencies
working-directory: ./apps/extension
run: yarn wasm:build
shell: bash

- name: Build ${{ inputs.browser }} extension
working-directory: ./apps/extension
env:
SHA: ${{ github.sha }}
run: |
NAMADA_INTERFACE_REVISION=$SHA yarn build:${{ inputs.browser }}
shell: bash

- name: Upload ${{ inputs.browser }} Artifact
run: |
BASE_VERSION=$(node -e 'console.log(require("./apps/extension/package.json").version)')
FILENAME=namada-keychain-${{ inputs.browser }}-${BASE_VERSION}.zip
mv ./apps/extension/build/${{ inputs.browser }}/namada_keychain-${BASE_VERSION}.zip ${FILENAME}
gh release upload ${{ inputs.tag }} ${FILENAME}
shell: bash
16 changes: 16 additions & 0 deletions .github/actions/prepare-build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: prepare-build
description: Prepare the build environment
runs:
using: composite
steps:
- 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
shell: bash
32 changes: 32 additions & 0 deletions .github/actions/release-project/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: release-project
description: Upload the project artifact to the GitHub release
on:
workflow_call:
inputs:
tag:
required: true
type: string
bundle_filename:
required: true
type: string
working_dir:
required: true
type: string

runs:
using: composite
steps:
- name: Install Dependencies
uses: ./.github/actions/prepare-build

- name: Build Artifact
working-directory: ${{ inputs.working_dir }}
run: yarn build
shell: bash

- name: Upload artifact
working-directory: ${{ inputs.working_dir }}/dist
run: |
zip -r ${{ inputs.bundle_filename }} .
gh release upload ${{ inputs.tag }} ${{ inputs.bundle_filename }}
shell: bash
135 changes: 0 additions & 135 deletions .github/workflows/deploy-wallet-at-merge-to-main.yml

This file was deleted.

10 changes: 2 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ name: Docker 🐳

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main


concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
Expand Down Expand Up @@ -61,4 +55,4 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max
44 changes: 0 additions & 44 deletions .github/workflows/release-namadillo.yml

This file was deleted.

Loading

0 comments on commit 904b65f

Please sign in to comment.