2021-11-06 20:11:55 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-11-06 20:11:55 +03:00
|
|
|
- '*'
|
2021-11-06 20:11:55 +03:00
|
|
|
tags:
|
|
|
|
- '[0-9]+.[0-9]+'
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/**'
|
|
|
|
- 'FiraCode.glyphs'
|
|
|
|
- 'script/**'
|
|
|
|
|
2021-02-10 00:21:44 +03:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2021-08-09 03:52:33 +03:00
|
|
|
container: tonsky/firacode:latest
|
2021-02-10 00:21:44 +03:00
|
|
|
steps:
|
2023-01-26 13:20:02 +03:00
|
|
|
- uses: actions/checkout@v3
|
2021-11-06 20:11:55 +03:00
|
|
|
- if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
run: python3 ./script/update_version.py
|
2021-08-09 03:26:47 +03:00
|
|
|
- run: ./script/build.sh
|
2021-11-06 20:11:55 +03:00
|
|
|
- run: echo "hash=$(git rev-parse --short $GITHUB_SHA)" >> $GITHUB_ENV
|
2023-01-26 13:20:02 +03:00
|
|
|
- uses: actions/upload-artifact@v3
|
2021-02-10 00:21:44 +03:00
|
|
|
with:
|
2021-11-06 20:11:55 +03:00
|
|
|
name: Fira_Code_${{ env.hash }}
|
|
|
|
path: distr
|
|
|
|
- if: startsWith(github.ref, 'refs/tags/')
|
2021-11-06 20:11:55 +03:00
|
|
|
run: python3 ./script/release.py
|