From 9ea4deb42f991494a61aafe9aa6e3465750e738e Mon Sep 17 00:00:00 2001 From: S2kael Date: Fri, 22 Mar 2024 14:18:16 +0700 Subject: [PATCH] [Patch] Init patching version --- .github/workflows/patch.yml | 42 +++++++++++++++++++ .../public/patch/0.2.47/AssetLogoMap.json | 1 + .../public/patch/0.2.47/AssetRef.json | 1 + .../public/patch/0.2.47/ChainAsset.json | 20 +++++++++ .../public/patch/0.2.47/ChainInfo.json | 1 + .../public/patch/0.2.47/ChainLogoMap.json | 1 + .../public/patch/0.2.47/MultiChainAsset.json | 1 + 7 files changed, 67 insertions(+) create mode 100644 .github/workflows/patch.yml create mode 100644 packages/chain-list-assets/public/patch/0.2.47/AssetLogoMap.json create mode 100644 packages/chain-list-assets/public/patch/0.2.47/AssetRef.json create mode 100644 packages/chain-list-assets/public/patch/0.2.47/ChainAsset.json create mode 100644 packages/chain-list-assets/public/patch/0.2.47/ChainInfo.json create mode 100644 packages/chain-list-assets/public/patch/0.2.47/ChainLogoMap.json create mode 100644 packages/chain-list-assets/public/patch/0.2.47/MultiChainAsset.json diff --git a/.github/workflows/patch.yml b/.github/workflows/patch.yml new file mode 100644 index 00000000..de9b9259 --- /dev/null +++ b/.github/workflows/patch.yml @@ -0,0 +1,42 @@ +name: Publish Patch +on: + push: + branches: + - master + - dev + - patch-demo + +jobs: + master: + if: "startsWith(github.event.head_commit.message, '[Patch]')" + runs-on: ubuntu-22.04 + name: Publish patch + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GH_AUTOMATION_TOKEN }} + + - name: Deploy Assets and Patch to Cloudflare Pages + id: cloudflare_deployment + uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: 'sw-chain-list-assets' + gitHubToken: ${{ secrets.GH_AUTOMATION_TOKEN }} + branch: ${{ github.ref_name }} + directory: './packages/chain-list-assets/public' + wranglerVersion: '3' + + - name: Notify to Discord + uses: sarisia/actions-status-discord@v1 + if: always() + with: + webhook: ${{ secrets.DISCORD_WEBHOOK }} + status: ${{ job.status }} + username: Chain List Notifier + title: ${{ github.workflow }} + description: | + The patch has been completed. + Commit message: ${{ github.event.head_commit.message }} diff --git a/packages/chain-list-assets/public/patch/0.2.47/AssetLogoMap.json b/packages/chain-list-assets/public/patch/0.2.47/AssetLogoMap.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/packages/chain-list-assets/public/patch/0.2.47/AssetLogoMap.json @@ -0,0 +1 @@ +{} diff --git a/packages/chain-list-assets/public/patch/0.2.47/AssetRef.json b/packages/chain-list-assets/public/patch/0.2.47/AssetRef.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/packages/chain-list-assets/public/patch/0.2.47/AssetRef.json @@ -0,0 +1 @@ +{} diff --git a/packages/chain-list-assets/public/patch/0.2.47/ChainAsset.json b/packages/chain-list-assets/public/patch/0.2.47/ChainAsset.json new file mode 100644 index 00000000..16da5210 --- /dev/null +++ b/packages/chain-list-assets/public/patch/0.2.47/ChainAsset.json @@ -0,0 +1,20 @@ +{ + "bifrost_dot-LOCAL-PINK": { + "originChain": "bifrost_dot", + "slug": "bifrost_dot-LOCAL-PINK", + "name": "Pink", + "symbol": "PINK", + "decimals": 10, + "priceId": null, + "minAmount": "100000000", + "assetType": "LOCAL", + "metadata": { + "onChainInfo": { + "Token2": "10" + } + }, + "multiChainAsset": "PINK-StatemintPink", + "hasValue": true, + "icon": "https://dev.sw-chain-list-assets.pages.dev/assets/chain-assets/bifrost_dot-local-pink.png" + } +} diff --git a/packages/chain-list-assets/public/patch/0.2.47/ChainInfo.json b/packages/chain-list-assets/public/patch/0.2.47/ChainInfo.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/packages/chain-list-assets/public/patch/0.2.47/ChainInfo.json @@ -0,0 +1 @@ +{} diff --git a/packages/chain-list-assets/public/patch/0.2.47/ChainLogoMap.json b/packages/chain-list-assets/public/patch/0.2.47/ChainLogoMap.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/packages/chain-list-assets/public/patch/0.2.47/ChainLogoMap.json @@ -0,0 +1 @@ +{} diff --git a/packages/chain-list-assets/public/patch/0.2.47/MultiChainAsset.json b/packages/chain-list-assets/public/patch/0.2.47/MultiChainAsset.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/packages/chain-list-assets/public/patch/0.2.47/MultiChainAsset.json @@ -0,0 +1 @@ +{}