Skip to content

chore: bump version #10

chore: bump version

chore: bump version #10

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
name: Build and Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Get version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Build binaries
env:
CGO_ENABLED: 0
run: |
VERSION=${{ steps.version.outputs.VERSION }}
LDFLAGS="-s -w -X github.com/two-tech-dev/endgit-cli/cmd.Version=${VERSION}"
GOOS=windows GOARCH=amd64 go build -ldflags="${LDFLAGS}" -o endgit-windows-amd64.exe .
GOOS=linux GOARCH=amd64 go build -ldflags="${LDFLAGS}" -o endgit-linux-amd64 .
GOOS=darwin GOARCH=amd64 go build -ldflags="${LDFLAGS}" -o endgit-darwin-amd64 .
GOOS=darwin GOARCH=arm64 go build -ldflags="${LDFLAGS}" -o endgit-darwin-arm64 .
- name: Generate checksums
run: |
sha256sum endgit-* > checksums.txt
cat checksums.txt
- name: Create Release
uses: softprops/action-gh-release@v3
with:
files: |
endgit-windows-amd64.exe
endgit-linux-amd64
endgit-darwin-amd64
endgit-darwin-arm64
checksums.txt
body: |
## EndGit ${{ steps.version.outputs.VERSION }}
### Installation
**Windows:**
```powershell
irm https://endgit.dev/installer.ps1 | iex
```
**Linux / macOS:**
```bash
curl -sSL https://endgit.dev/installer.sh | bash
```
### Usage
```
endgit login
endgit search <plugin>
endgit install <plugin>
endgit info <plugin>
```
### Checksums
See `checksums.txt` for SHA-256 verification.
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}