Skip to content

Commit

Permalink
added release step to build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jhilker98 authored Oct 31, 2023
1 parent 316c1c3 commit 3a650ec
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,20 @@ jobs:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: "Build Josevka"
run: nix build -L .#josevka --cores 2
- run: zip -9 josevka-$GITHUB_SHA.zip ./result/share/fonts/truetype/*.ttf
- run: ls

- name: Create Short Sha
run: echo "SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV


- run: zip -9 josevka-v$SHORT_SHA.zip ./result/share/fonts/truetype/*.ttf
- name: Expose git commit data
uses: rlespinasse/git-commit-data-action@v1

- name: Release Fonts
uses: ncipollo/release-action@v1
with:
artifacts: "*.zip"
tag: ${{ env.RELEASE_VER }}
body: ${{ env.GIT_COMMIT_MESSAGE_BODY }}
commit: ${{ github.event.head_commit.id }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3a650ec

Please sign in to comment.