-
Notifications
You must be signed in to change notification settings - Fork 171
43 lines (41 loc) · 1.09 KB
/
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
name: Release
on:
push:
tags:
- '*'
branches:
- main
jobs:
build:
name: Publish Schema
runs-on: ubuntu-22.04
steps:
-
uses: actions/checkout@v2
-
name: Setup
run: |
sudo apt update -q
sudo apt install -yy python make
-
name: Build
run: |
make lottie.schema.json
-
name: Upload Schema
if: ${{ contains(github.ref, '/tags/') }}
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: docs/schema/lottie.schema.json
tag_name: ${{ github.ref }}
overwrite: true
-
name: Upload Schema
if: ${{ !contains(github.ref, '/tags/') }}
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: docs/schema/lottie.schema.json
tag_name: latest
overwrite: true