Skip to content

Commit

Permalink
temp: temporary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorezende committed Jan 13, 2025
1 parent a05818f commit c5fb32c
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 52 deletions.
40 changes: 20 additions & 20 deletions .github/actions/build-extension/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ on:
required: true
type: string

jobs:
build:
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Install Dependencies
with: ./.github/actions/prepare-build
runs:
using: composite
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Install Dependencies
with: ./.github/actions/prepare-build

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

- name: Build ${{ inputs.browser }} extension
working-directory: ./apps/extension
env:
SHA: ${{ github.sha }}
run: |
NAMADA_INTERFACE_REVISION=$SHA yarn build:${{ inputs.browser }}
- name: Build ${{ inputs.browser }} extension
working-directory: ./apps/extension
env:
SHA: ${{ github.sha }}
run: |
NAMADA_INTERFACE_REVISION=$SHA yarn build:${{ inputs.browser }}
- name: Upload ${{ inputs.browser }} Artifact
run: |
gh release upload ${{ inputs.tag }} \
./apps/extension/build/${{ inputs.browser }}/namada_keychain-*.zip#$namada_keychain_${{ inputs.browser }}.zip
- name: Upload ${{ inputs.browser }} Artifact
run: |
gh release upload ${{ inputs.tag }} \
./apps/extension/build/${{ inputs.browser }}/namada_keychain-*.zip#$namada_keychain_${{ inputs.browser }}.zip
29 changes: 13 additions & 16 deletions .github/actions/prepare-build/action.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
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
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
30 changes: 15 additions & 15 deletions .github/actions/release-project/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ on:
required: true
type: string

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

- name: Build Artifact
run: yarn 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 }}
- name: Upload artifact
working-directory: ${{ inputs.working_dir }}/dist
run: |
zip -r ${{ inputs.bundle_filename }} .
gh release upload ${{ inputs.tag }} ${{ inputs.bundle_filename }}
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- main
- feat/release-please-test2

permissions:
contents: write
Expand All @@ -22,6 +22,8 @@ jobs:
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
target-branch: feat/release-please-test2

build-namadillo:
needs: [release-please]
Expand All @@ -31,6 +33,9 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: ./.github/actions/release-project
with:
tag: ${{ needs.release-please.outputs.namadillo_tag }}
Expand All @@ -45,6 +50,9 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: ./.github/actions/release-project
with:
tag: ${{ needs.release-please.outputs.sdk_tag }}
Expand All @@ -59,6 +67,9 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: ./.github/actions/release-project
with:
tag: ${{ needs.release-please.outputs.types_tag }}
Expand All @@ -70,6 +81,9 @@ jobs:
if: ${{ needs.release-please.outputs.extension_tag }}
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build Chrome Extension
uses: ./.github/actions/build-extension
with:
Expand Down
1 change: 1 addition & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"include-component-in-tag": true,
"separate-pull-requests": true,
"tag-separator": "@",
"draft": true,
"release-type": "node",
"packages": {
"apps/namadillo": {},
Expand Down

0 comments on commit c5fb32c

Please sign in to comment.