-
-
Notifications
You must be signed in to change notification settings - Fork 36
49 lines (40 loc) · 1.1 KB
/
previews.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
43
44
45
46
47
48
49
name: Generate Previews
on:
workflow_dispatch:
push:
branches: [main]
paths:
- 'icons/**'
- scripts/icons/preview.ts
- scripts/catwalk.ts
tags-ignore: [v*]
jobs:
generate-previews:
name: Generate Previews
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Generate Flavor Previews
run: pnpm icons:preview
- name: Setup catppuccin/catwalk
uses: catppuccin/[email protected]
- name: Generate Catwalk Preview
run: pnpm catwalk
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
title: 'chore: re-generate previews'
commit-message: 'chore: re-generate previews'
branch: chore/re-generate-previews
delete-branch: true
add-paths: |
assets/*