Skip to content

chore: release executable file (#55) #9

chore: release executable file (#55)

chore: release executable file (#55) #9

Workflow file for this run

name: Release
on:
push:
tags:
- "**"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: "v1.x"
- name: Build and Archive jcli
run: |
for i in x86_64-unknown-linux-gnu x86_64-apple-darwin aarch64-apple-darwin aarch64-unknown-linux-gnu
do
deno compile -A --target $i -o jcli-$i main.ts
tar -czf jcli-$i.tar.gz jcli-$i
done
- name: Release jcli
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
jcli-x86_64-unknown-linux-gnu.tar.gz
jcli-x86_64-apple-darwin.tar.gz
jcli-aarch64-apple-darwin.tar.gz
jcli-aarch64-unknown-linux-gnu.tar.gz
jcli-x86_64-unknown-linux-gnu
jcli-x86_64-apple-darwin
jcli-aarch64-apple-darwin
jcli-aarch64-unknown-linux-gnu