Skip to content

Commit

Permalink
[Patch] Init patching version
Browse files Browse the repository at this point in the history
  • Loading branch information
S2kael committed Mar 22, 2024
1 parent 03f8a73 commit 9ea4deb
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/patch.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
20 changes: 20 additions & 0 deletions packages/chain-list-assets/public/patch/0.2.47/ChainAsset.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

0 comments on commit 9ea4deb

Please sign in to comment.