1
1
mirror of https://github.com/tonsky/FiraCode.git synced 2024-09-11 04:55:28 +03:00
FiraCode/.github/workflows/build.yml

28 lines
684 B
YAML
Raw Normal View History

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/**'
jobs:
build:
runs-on: ubuntu-latest
container: tonsky/firacode:latest
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
- 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
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