feat(cli): remove deno serverless & support run .ts serverless in nod… #56
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: "Log level" | |
required: true | |
default: "warning" | |
jobs: | |
build: | |
name: Build and release | |
runs-on: ubuntu-latest | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21" | |
- name: Run build script | |
env: | |
PLATFORMS: "darwin/amd64,darwin/arm64,windows/amd64,windows/arm64,linux/amd64,linux/arm64,freebsd/amd64,freebsd/arm64" | |
run: | | |
bash ./build.sh | |
- name: Generate hashes | |
run: | | |
cd ./build | |
for f in $(find . -type f); do | |
sha256sum $f | sudo tee -a hashes.txt | |
done | |
- name: Upload | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
./build/yomo-amd64-darwin.tar.gz | |
./build/yomo-arm64-darwin.tar.gz | |
./build/yomo-amd64-windows.tar.gz | |
./build/yomo-arm64-windows.tar.gz | |
./build/yomo-amd64-linux.tar.gz | |
./build/yomo-arm64-linux.tar.gz | |
./build/yomo-amd64-freebsd.tar.gz | |
./build/yomo-arm64-freebsd.tar.gz | |
./build/hashes.txt |