Skip to content

Commit

Permalink
break apart release files
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchrish committed Aug 19, 2024
1 parent e126a62 commit 99a99e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
- name: Download release file
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release download --pattern ${{ matrix.typeface }}.tar.gz
run: gh release download --pattern ${{ matrix.typeface }}-TTF.zip

- name: Install font
run: |
tar xzf ${{ matrix.typeface }}.tar.gz
sudo cp ${{ matrix.typeface }}/TTF/*.ttf /usr/local/share/fonts
unzip ${{ matrix.typeface }}-TTF.zip
sudo cp TTF/*.ttf /usr/local/share/fonts
sudo fc-cache -f -v
- name: Generate specimen image
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,17 @@ jobs:
- name: Zip build files
run: |
cd ../Iosevka/dist
tar czf ${{ matrix.typeface }}.tar.gz ${{ matrix.typeface }}
cd ../Iosevka/dist/${{ matrix.typeface }}
zip -r ${{ matrix.typeface }}-TTF.zip TTF
zip -r ${{ matrix.typeface }}-TTF-Unhinted.zip TTF-Unhinted
zip -r ${{ matrix.typeface }}-WOFF2.zip WOFF2 ${{ matrix.typeface }}.css
zip -r ${{ matrix.typeface }}-WOFF2-Unhinted.zip WOFF2 ${{ matrix.typeface }}-Unhinted.css
- name: Upload zip file
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.typeface }}
path: /home/runner/work/zenbones-mono/Iosevka/dist/${{ matrix.typeface }}.tar.gz
path: /home/runner/work/zenbones-mono/Iosevka/dist/*.zip

release:
needs: build
Expand All @@ -76,7 +79,7 @@ jobs:
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
files: artifacts/*.tar.gz
files: artifacts/*.zip

call-create-images-workflow:
needs: release
Expand Down

0 comments on commit 99a99e5

Please sign in to comment.