ci(actions): Use Fontship at master until we finish debuging release … #332
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fontship | |
on: [push, pull_request] | |
jobs: | |
fontship: | |
name: Fontship | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Fetch tags | |
run: | | |
git fetch --prune --tags ||: | |
- name: Fontship make | |
id: fontship | |
uses: docker://ghcr.io/theleagueof/fontship:master | |
with: | |
args: make dist | |
# uses: theleagueof/fontship@v0 | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ steps.fontship.outputs.DISTDIR }} | |
path: ${{ steps.fontship.outputs.DISTDIR }}.zip | |
- name: Release | |
if: startsWith(github.ref, 'refs/tags/v') | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
${{ steps.fontship.outputs.DISTDIR }}.zip | |
${{ steps.fontship.outputs.DISTDIR }}.tar.xz | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |