[Issue-235][Mythical Telegram App] improve name variable #172
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
name: Build Mythical MiniApp | |
on: | |
push: | |
branches: | |
- mythical-dev | |
- mythical-preview | |
- mythical-prod | |
jobs: | |
master: | |
if: "!startsWith(github.event.head_commit.message, '[CI Skip]')" | |
name: Deploy Telegram MiniApp | |
runs-on: ubuntu-22.04 | |
environment: ${{ github.ref_name }} | |
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 WebApp | |
env: | |
TRANSAK_API_KEY: ${{ secrets.TRANSAK_API_KEY }} | |
COINBASE_PAY_ID: ${{ secrets.COINBASE_PAY_ID }} | |
NFT_MINTING_HOST: ${{ secrets.NFT_MINTING_HOST }} | |
BRANCH_NAME: master | |
GAME_API_HOST: ${{ vars.GAME_API_HOST }} | |
TELEGRAM_WEBAPP_LINK: ${{ vars.TELEGRAM_WEBAPP_LINK }} | |
AUTHENTICATE_CLIENT_ID: ${{ secrets.AUTHENTICATE_CLIENT_ID }} | |
AUTHENTICATE_REDIRECT_URI: ${{ vars.AUTHENTICATE_REDIRECT_URI }} | |
LINKING_URL: ${{ vars.LINKING_URL }} | |
LINKING_SERVICE: ${{ vars.LINKING_SERVICE }} | |
LINKING_BOT: ${{ vars.LINKING_BOT }} | |
LINKING_TOKEN: ${{ secrets.LINKING_TOKEN }} | |
run: | | |
yarn install --immutable | grep -v 'YN0013' | |
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: mythical-games | |
gitHubToken: ${{ secrets.GH_AUTOMATION_TOKEN }} | |
branch: ${{ vars.CF_PAGE_BRANCH }} | |
directory: './packages/webapp/build' | |
wranglerVersion: '3' | |
- name: Notify to Discord | |
uses: sarisia/actions-status-discord@v1 | |
if: always() | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
status: ${{ job.status }} | |
username: Mythical Deployment Worker | |
title: ${{ github.workflow }} | |
description: | | |
The deployment is completed. | |
- URL: ${{ steps.cloudflare_deployment.outputs.url }} | |
- Alias: ${{ steps.cloudflare_deployment.outputs.alias }} |