Skip to content

Commit

Permalink
Merge pull request #72 from bnb-chain/cicd
Browse files Browse the repository at this point in the history
chore: Update cicd
  • Loading branch information
wenty22 authored Oct 29, 2024
2 parents e5a6d30 + 5050790 commit 2fa9b3a
Show file tree
Hide file tree
Showing 8 changed files with 128 additions and 307 deletions.
41 changes: 0 additions & 41 deletions .github/actions/alpha/action.yaml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/actions/gh-pages/action.yaml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/actions/server/action.yaml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/demo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Release demo

on:
push:
branches: [demo]
paths:
- .github/**
- apps/canonical-bridge-ui/**
- packages/canonical-bridge-sdk/**
- packages/canonical-bridge-widget/**

jobs:
cicd:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@v4

- uses: ./.github/actions/setup
with:
npm-token: ${{ secrets.NPM_TOKEN }}

- 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 canonical-bridge-ui
node common/scripts/install-run-rush.js build -t 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
100 changes: 0 additions & 100 deletions .github/workflows/qa-deploy.yaml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/release-server.yaml

This file was deleted.

Loading

0 comments on commit 2fa9b3a

Please sign in to comment.