Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/telegram-dev-02' into koni/dev/i…
Browse files Browse the repository at this point in the history
…ssue-renew-ui
  • Loading branch information
lw committed May 24, 2024
2 parents 2725015 + 39a5190 commit 37ba497
Show file tree
Hide file tree
Showing 23 changed files with 635 additions and 341 deletions.
94 changes: 0 additions & 94 deletions .github/workflows/push-koni-dev.yml

This file was deleted.

71 changes: 0 additions & 71 deletions .github/workflows/push-master.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/push-web-runner.yml

This file was deleted.

70 changes: 70 additions & 0 deletions .github/workflows/push-webapp-test-01.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Build Telegram MiniApp 01
on:
pull_request:
branches:
- telegram-dev-01

push:
branches:
- telegram-dev-01

jobs:
master:
if: "!startsWith(github.event.head_commit.message, '[CI Skip]')"
name: Deploy Telegram MiniApp 01
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_AUTOMATION_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Build
env:
TRANSAK_API_KEY: ${{ secrets.TRANSAK_API_KEY }}
COINBASE_PAY_ID: ${{ secrets.COINBASE_PAY_ID }}
NFT_MINTING_HOST: ${{ secrets.NFT_MINTING_HOST }}
BRANCH_NAME: ${{ github.ref_name }}
GAME_API_HOST: ${{ vars.API_DEV_SERVER_1 }}
TELEGRAM_WEBAPP_LINK: ${{ vars.TELEGRAM_WEBAPP_LINK_01 }}
run: |
yarn install --immutable | grep -v 'YN0013'
if [ ${{ github.ref_name }} == 'telegram-wallet' ]; then
yarn run webapp:change-build-number
fi
yarn webapp:build
- name: Publish to Cloudflare Pages
id: cloudflare_deployment
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ vars.CLOUDFLARE_PAGES_PROJECT_NAME }}
gitHubToken: ${{ secrets.GH_AUTOMATION_TOKEN }}
branch: ${{ github.ref_name }}
directory: './packages/webapp/build'
wranglerVersion: '3'
- if: "github.ref_name == 'telegram-wallet' && github.event_name == 'push'"
name: Automation Bot
uses: EndBug/add-and-commit@v9
with:
author_name: Automation Bot
author_email: [email protected]
message: '[CI Skip] Auto increase webapp build number'
- name: Notify to Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
username: WebApp Worker
title: ${{ github.workflow }}
description: |
The deployment is completed.
- URL: ${{ steps.cloudflare_deployment.outputs.url }}
- Alias: ${{ steps.cloudflare_deployment.outputs.alias }}
70 changes: 70 additions & 0 deletions .github/workflows/push-webapp-test-02.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Build Telegram MiniApp 02
on:
pull_request:
branches:
- telegram-dev-02

push:
branches:
- telegram-dev-02

jobs:
master:
if: "!startsWith(github.event.head_commit.message, '[CI Skip]')"
name: Deploy Telegram MiniApp 02
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_AUTOMATION_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Build
env:
TRANSAK_API_KEY: ${{ secrets.TRANSAK_API_KEY }}
COINBASE_PAY_ID: ${{ secrets.COINBASE_PAY_ID }}
NFT_MINTING_HOST: ${{ secrets.NFT_MINTING_HOST }}
BRANCH_NAME: ${{ github.ref_name }}
GAME_API_HOST: ${{ vars.API_DEV_SERVER_2 }}
TELEGRAM_WEBAPP_LINK: ${{ vars.TELEGRAM_WEBAPP_LINK_02 }}
run: |
yarn install --immutable | grep -v 'YN0013'
if [ ${{ github.ref_name }} == 'telegram-wallet' ]; then
yarn run webapp:change-build-number
fi
yarn webapp:build
- name: Publish to Cloudflare Pages
id: cloudflare_deployment
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ vars.CLOUDFLARE_PAGES_PROJECT_NAME }}
gitHubToken: ${{ secrets.GH_AUTOMATION_TOKEN }}
branch: ${{ github.ref_name }}
directory: './packages/webapp/build'
wranglerVersion: '3'
- if: "github.ref_name == 'telegram-wallet' && github.event_name == 'push'"
name: Automation Bot
uses: EndBug/add-and-commit@v9
with:
author_name: Automation Bot
author_email: [email protected]
message: '[CI Skip] Auto increase webapp build number'
- name: Notify to Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
username: WebApp Worker
title: ${{ github.workflow }}
description: |
The deployment is completed.
- URL: ${{ steps.cloudflare_deployment.outputs.url }}
- Alias: ${{ steps.cloudflare_deployment.outputs.alias }}
Loading

0 comments on commit 37ba497

Please sign in to comment.