Skip to content

Commit

Permalink
Updates work flows
Browse files Browse the repository at this point in the history
  • Loading branch information
catusf committed Nov 15, 2024
1 parent a39bb9f commit f801ceb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/node-small.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,23 @@ jobs:
- run: npm test

- name: Build all fonts
run: ./bin/run-small.sh
run: ./run_all.py --small_data

- name: Zip all artifacts for release
run: zip -9 -j output/all_fonts.zip output/*.ttf &&
ls output/*.zip -ll

- name: Set the release date
id: set_date
run: echo "RELEASE_DATE=$(date +'%Y-%m-%d_%H-%M-%S')" >> $GITHUB_ENV

- name: Create a new release draft
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: output/all_fonts.zip
body: If you can read this, we have forgotten to fill in the changelog. Sorry!
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
draft: true
name: Release-Small ${{ github.ref }}

artifacts: output/all_fonts.zip
body: If you can read this, we have forgotten to fill in the changelog. Sorry!
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
draft: true
name: Release-Small-${{ github.ref_name }}-${{ env.RELEASE_DATE }}
17 changes: 10 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,17 @@ jobs:
- name: Zip all artifacts for release
run: zip -9 -j output/all_fonts.zip output/*.ttf

- name: Set the release date
id: set_date
run: echo "RELEASE_DATE=$(date +'%Y-%m-%d_%H-%M-%S')" >> $GITHUB_ENV

- name: Create a new release draft
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: output/all_fonts.zip
body: If you can read this, we have forgotten to fill in the changelog. Sorry!
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
draft: true
name: Release ${{ github.ref }}

artifacts: output/all_fonts.zip
body: If you can read this, we have forgotten to fill in the changelog. Sorry!
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
draft: true
name: Release-Big-${{ github.ref_name }}-${{ env.RELEASE_DATE }}

0 comments on commit f801ceb

Please sign in to comment.