-
Notifications
You must be signed in to change notification settings - Fork 13
42 lines (39 loc) · 1.25 KB
/
patch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 }}