-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
105 additions
and
167 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,31 @@ | ||
name: alpha-cicd-trigger-by-comment | ||
|
||
inputs: | ||
app-name: | ||
description: 'app name' | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install & build | ||
shell: bash | ||
run: | | ||
node .release/scripts/install.js | ||
node common/scripts/install-run-rush.js install -t @bnb-chain/$APP_NAME | ||
node common/scripts/install-run-rush.js build -t @bnb-chain/$APP_NAME | ||
env: | ||
APP_NAME: ${{inputs.app-name}} | ||
|
||
- name: Create and publish versions | ||
uses: changesets/action@v1 | ||
with: | ||
version: pnpm ci:alpha-version | ||
publish: pnpm ci:publish | ||
commit: 'chore: Update versions' | ||
title: 'chore: Update versions' | ||
cwd: '.release' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,46 @@ | ||
name: github-pages-cicd | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Creating .env | ||
shell: bash | ||
run: | | ||
cat << EOF > "./apps/canonical-bridge-ui/.env" | ||
NEXT_PUBLIC_APP_NAME=$APP_NAME | ||
NEXT_PUBLIC_BASE_PATH=$BASE_PATH | ||
NEXT_PUBLIC_ASSET_PREFIX=$ASSET_PREFIX | ||
NEXT_PUBLIC_SERVER_ENDPOINT=$SERVER_ENDPOINT | ||
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_PROJECT_ID | ||
EOF | ||
env: | ||
APP_NAME: canonical-bridge | ||
BASE_PATH: /canonical-bridge | ||
ASSET_PREFIX: /canonical-bridge | ||
SERVER_ENDPOINT: ${{ vars.SERVER_ENDPOINT }} | ||
WALLET_CONNECT_PROJECT_ID: ${{ vars.WALLET_CONNECT_PROJECT_ID }} | ||
|
||
- name: Install & build | ||
shell: bash | ||
run: | | ||
node common/scripts/install-run-rush.js install -t @bnb-chain/canonical-bridge-ui | ||
node common/scripts/install-run-rush.js build -t @bnb-chain/canonical-bridge-ui | ||
- name: Pushes to another repository | ||
uses: cpina/github-action-push-to-another-repository@main | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | ||
with: | ||
source-directory: './apps/canonical-bridge-ui/dist' | ||
destination-github-username: 'wenty22' | ||
destination-repository-name: 'canonical-bridge' | ||
user-email: github-actions[bot]@users.noreply.github.com | ||
target-branch: main | ||
|
||
# - name: Deploy docs | ||
# uses: JamesIves/github-pages-deploy-action@v4 | ||
# with: | ||
# folder: ./apps/canonical-bridge-ui/dist | ||
# branch: 'gh-pages' | ||
# clean: true | ||
# force: true |
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.
This file was deleted.
Oops, something went wrong.
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 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