Skip to content

Commit

Permalink
feat: adding different projects and refactor config
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorezende committed Jan 13, 2025
1 parent 42b92e7 commit a05818f
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 383 deletions.
15 changes: 2 additions & 13 deletions .github/actions/build-extension/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,8 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout
uses: actions/checkout@v4

- 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: Install Dependencies
with: ./.github/actions/prepare-build

- name: Build WASM dependencies
working-directory: ./apps/extension
Expand Down
18 changes: 18 additions & 0 deletions .github/actions/prepare-build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: prepare-build

jobs:
build:
steps:
- name: Checkout
uses: actions/checkout@v4

- 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
31 changes: 31 additions & 0 deletions .github/actions/release-project/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: release-project
on:
workflow_call:
inputs:
tag:
required: true
type: string
bundle_filename:
required: true
type: string
working_dir:
required: true
type: string

jobs:
release:
defaults:
run:
working-directory: ${{ inputs.working_dir }}
steps:
- name: Install Dependencies
uses: ./.github/actions/prepare-build

- name: Build Artifact
run: yarn build

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

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/release-namadillo.yml

This file was deleted.

Loading

0 comments on commit a05818f

Please sign in to comment.