-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configuring Release-Please to create releases for Apps / Packages (#1502
) * feat: removing release-it workflow * feat: applying some builds only on merge to main * feat: adding yarn poisoning as a dep * feat: trying to fix yarn poisoning error * fix: namadillo should build fully * fix: fixing weird type errors * feat: initial release-please config * fix: fixing ci for extension build * feat: adding different projects and refactor config * fix: fixing release actions * fix: more fixes on the actions * feat: final review and test
- Loading branch information
1 parent
2b7348e
commit 8a01328
Showing
37 changed files
with
9,194 additions
and
10,023 deletions.
There are no files selected for viewing
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
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 |
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
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 |
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
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 |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.