-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.45 KB
/
release.yml
File metadata and controls
52 lines (43 loc) · 1.45 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
name: Release
on:
push:
tags:
- 'v[0-9]*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Python dependencies
run: |
python -m venv .venv
.venv/bin/pip install -r requirements.txt
- name: Install ffmpeg, fonts, and ImageMagick
run: |
sudo apt-get update -q
sudo apt-get install -y ffmpeg fonts-dejavu-core imagemagick
sudo ln -sf /usr/bin/convert /usr/local/bin/magick
- name: Install vhs and ttyd
run: |
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key \
| sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" \
| sudo tee /etc/apt/sources.list.d/charm.list
sudo apt-get update -q && sudo apt-get install -y vhs ttyd
- name: Generate demo videos
run: make demo-stack-dark demo-sll-dark demo-dll-dark demo-uint-dark
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
demos/stack-dark.mp4
demos/sll-dark.mp4
demos/dll-dark.mp4
demos/unsigned-int-dark.mp4