-
-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (36 loc) · 1.04 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
name: Release
on:
push:
tags:
- v*.*.*
jobs:
ghrelase:
strategy:
fail-fast: false
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup system dependencies
run: |
sudo apt-get install clang mold
- name: Configure
run: |
echo "VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
echo "${GITHUB_REF#refs/*/v}" > .tarball-version
./bootstrap.sh
./configure \
--enable-developer-mode \
--without-{bash,fish,zsh}-completion-dir \
--disable-dependency-checks
- name: Build source package
run: |
make dist
- name: Publish Release
uses: softprops/action-gh-release@v1
if: github.repository == 'theleagueof/fontship' && startsWith(github.ref, 'refs/tags/v')
with:
body_path: fontship-${{ env.VERSION }}.md
files: |
fontship-${{ env.VERSION }}.zip
fontship-${{ env.VERSION }}.tar.zst