-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (43 loc) · 1.18 KB
/
create-release.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
50
51
52
53
54
55
name: Create Release
on:
push:
tags:
- '*'
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Find changes
id: find-changes
run: npm run find-changes
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_REF: ${{ github.ref_name }}
- name: Generate PNGs
run: npm run generate-pngs
- name: Generate preview
run: npm run generate-preview
if: ${{ steps.find-changes.outputs.hasSvgChanges == 'true' }}
- name: Create tar archives
run: npm run create-tars
- name: Generate meta.json
run: npm run generate-meta
- name: Generate hi-res PNGs
run: npm run generate-pngs -- --size 2048
- name: Create zip archives
run: npm run create-zips
# - name: Create release
# uses: softprops/action-gh-release@v2
# with:
# files: |
# tar/**
# zip/**
# preview.png