Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring Release-Please to create releases for Apps / Packages #1502

Merged
merged 12 commits into from
Jan 14, 2025
Merged
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
Loading