From 831ac5c4ce357abd1e46b08b9524d09d94a494ce Mon Sep 17 00:00:00 2001 From: catus felis Date: Thu, 14 Nov 2024 19:36:51 +0800 Subject: [PATCH] Update node-small.js.yml --- .github/workflows/node-small.js.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/node-small.js.yml b/.github/workflows/node-small.js.yml index 1924a49..73c19ad 100644 --- a/.github/workflows/node-small.js.yml +++ b/.github/workflows/node-small.js.yml @@ -1,7 +1,4 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs - -name: Build all fonts with SMALL data set +name: Build all fonts with small data set concurrency: group: ${{ github.workflow }} @@ -19,7 +16,6 @@ env: jobs: build: - runs-on: ubuntu-latest strategy: @@ -45,14 +41,17 @@ jobs: 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_name }}-$(date +'%Y-%m-%d_%H-%M-%S') - + 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 }}