build.yml 684 B

123456789101112131415161718192021222324252627
  1. on:
  2. push:
  3. branches:
  4. - '*'
  5. tags:
  6. - '[0-9]+.[0-9]+'
  7. paths:
  8. - '.github/workflows/**'
  9. - 'FiraCode.glyphs'
  10. - 'script/**'
  11. jobs:
  12. build:
  13. runs-on: ubuntu-latest
  14. container: tonsky/firacode:latest
  15. steps:
  16. - uses: actions/checkout@v3
  17. - if: startsWith(github.ref, 'refs/tags/')
  18. run: python3 ./script/update_version.py
  19. - run: ./script/build.sh
  20. - run: echo "hash=$(git rev-parse --short $GITHUB_SHA)" >> $GITHUB_ENV
  21. - uses: actions/upload-artifact@v3
  22. with:
  23. name: Fira_Code_${{ env.hash }}
  24. path: distr
  25. - if: startsWith(github.ref, 'refs/tags/')
  26. run: python3 ./script/release.py