forked from lukas-w/font-logos
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (59 loc) · 2.11 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This creates a Release Draft
# Adjust the release message in the web GUI and publish the release there.
name: Draft a Release
on:
workflow_dispatch:
jobs:
setup-release-draft:
runs-on: ubuntu-latest
steps:
- name: Fetch repo
uses: actions/checkout@v4
- name: Fetch dependencies
run: |
sudo apt update -y -q
sudo apt install python3-fontforge jq nodejs wkhtmltopdf -y -q
npm install nunjucks
# Ubuntu 20.04 has only fontforge release 2020, but there are some vital bugfixes in the 2023 release
# This can be replaced with the ordinary apt package when Ubuntu updates, probably with 23.10
# On the other hand ... why not be on the latest release always?
- name: Fetch FontForge
run: |
sudo apt install fuse -y -q
curl -L "https://github.com/fontforge/fontforge/releases/download/20230101/FontForge-2023-01-01-a1dad3e-x86_64.AppImage" \
--output fontforge
chmod u+x fontforge
echo Try appimage
./fontforge --version
export PATH=`pwd`:$PATH
echo "PATH=$PATH" >> $GITHUB_ENV
echo Try appimage with path
fontforge --version
- name: Determine version
id: rel_ver
run: |
REL_VERSION=$(jq -r '.version' package.json)
echo "Release version ${REL_VERSION}"
echo "ver=${REL_VERSION}" >> $GITHUB_OUTPUT
- name: Create the assets
run: |
make
- name: Create archive
id: archive
run: |
make pack
ZIPFILE=$(ls quickemu-logos-*zip )
echo "ZIPFILE=${ZIPFILE}"
echo "filename=${ZIPFILE}" >> $GITHUB_OUTPUT
- name: Adjust release tag
uses: EndBug/[email protected]
with:
ref: "v${{ steps.rel_ver.outputs.ver }}"
- name: Create release draft
uses: softprops/action-gh-release@v2
with:
draft: true
tag_name: "v${{ steps.rel_ver.outputs.ver }}"
files: |
${{ steps.archive.outputs.filename }}
generate_release_notes: true