Skip to content

Commit

Permalink
chore: Change .github/workflows/build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
redpeacock78 committed Dec 29, 2021
1 parent 2370b83 commit a8f68ec
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,24 @@ jobs:
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Run Test
run: |
deno test
- name: Set Tag and Compile
run: |
echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
deno compile --allow-read --v8-flags=--max-old-space-size=8192 --target x86_64-unknown-linux-gnu --output base85-linux-x86 cli.ts
deno compile --allow-read --v8-flags=--max-old-space-size=8192 --target x86_64-pc-windows-msvc --output base85-windows-x86 cli.ts
deno compile --allow-read --v8-flags=--max-old-space-size=8192 --target x86_64-apple-darwin --output base85-macos-x86 cli.ts
deno compile --allow-read --v8-flags=--max-old-space-size=8192 --target aarch64-apple-darwin --output base85-macos-arm cli.ts
- name: Get commit summary
id: get_commit_summary
run: |
PREVIOUS_TAG=$(git tag --sort=-creatordate | sed -n 2p)
echo "PREVIOUS_TAG: $PREVIOUS_TAG"
COMMIT_SUMMARY="$(git log --oneline --pretty=tformat:"%h %s" $PREVIOUS_TAG..${{ github.ref }})"
COMMIT_SUMMARY="${COMMIT_SUMMARY//$'\n'/'%0A'}"
echo ::set-output name=COMMIT_SUMMARY::$COMMIT_SUMMARY
- name: Create Release
id: create_release
uses: actions/[email protected]
Expand All @@ -30,6 +41,8 @@ jobs:
with:
tag_name: ${{ env.TAG }}
release_name: ${{ env.TAG }}
body: |
${{ steps.get_commit_summary.outputs.COMMIT_SUMMARY }}
draft: false
prerelease: false
- name: Upload Release
Expand Down

0 comments on commit a8f68ec

Please sign in to comment.