-
Notifications
You must be signed in to change notification settings - Fork 264
60 lines (49 loc) · 1.69 KB
/
Copy pathcombine.yml
File metadata and controls
60 lines (49 loc) · 1.69 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: combine
on:
push:
branches:
- main
# Allows you to run this workflow manually
workflow_dispatch:
jobs:
combine:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App Token
id: generate-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.HYPER_GONK_APP_ID }}
private-key: ${{ secrets.HYPER_GONK_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || 'main' }}
# Use Hyper Gonk token to allow CI to trigger on commits pushed by this workflow
token: ${{ steps.generate-token.outputs.token }}
- name: yarn-install
uses: ./.github/actions/yarn-install-with-cache
- name: foundry-install
uses: foundry-rs/foundry-toolchain@v1
- name: Configure Git for Hyper Gonk
run: |
git config user.name "${{ steps.generate-token.outputs.app-slug }}[bot]"
git config user.email "${{ secrets.HYPER_GONK_APP_ID }}+${{ steps.generate-token.outputs.app-slug }}[bot]@users.noreply.github.com"
- name: combine-data
run: |
echo "Assembling warp route configs, chain metadata and addresses together..."
yarn build
- name: commit-changes
uses: ./.github/actions/commit-changes
with:
message: "Update chain metadata and address files"
- name: setup-node
uses: actions/setup-node@v4
with:
node-version: 20
- name: optimize-svgs
run: |
node ./scripts/optimize-svg.js
- name: commit-changes
uses: ./.github/actions/commit-changes
with:
message: "Optimize SVG files"