Skip to content

chore: bump versions #9

chore: bump versions

chore: bump versions #9

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*'
jobs:
build:
name: Build Binaries
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Deno
uses: denoland/setup-deno@v1
with:
deno-version: '2.4.1'
- name: Get version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Build binaries
run: |
# Ensure dist directory exists
mkdir -p dist
# Build all platforms
deno task compile:linux
deno task compile:macos
deno task compile:windows
- name: Rename binaries with version info
run: |
cd dist
mv proxy-cli-linux proxy-cli-linux-${{ env.VERSION }}
mv proxy-cli-macos proxy-cli-macos-${{ env.VERSION }}
mv proxy-cli-windows.exe proxy-cli-windows-${{ env.VERSION }}.exe
- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v1
with:
name: proxy-cli v${{ env.VERSION }}
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
body: |
## proxy-cli v${{ env.VERSION }}
### Changes in this release
- See the [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for details
### Installation
Download the appropriate binary for your system and make it executable:
#### Linux
```bash
chmod +x proxy-cli-linux-${{ env.VERSION }}
./proxy-cli-linux-${{ env.VERSION }}
```
#### macOS
```bash
chmod +x proxy-cli-macos-${{ env.VERSION }}
./proxy-cli-macos-${{ env.VERSION }}
```
#### Windows
Double-click the executable or run from command line:
```
proxy-cli-windows-${{ env.VERSION }}.exe
```
files: |
dist/proxy-cli-linux-${{ env.VERSION }}
dist/proxy-cli-macos-${{ env.VERSION }}
dist/proxy-cli-windows-${{ env.VERSION }}.exe
- name: Output Release URL
run: echo "Release URL -> ${{ steps.create_release.outputs.url }}"