Skip to content

new feature open in editor #4

new feature open in editor

new feature open in editor #4

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64
- goos: windows
goarch: amd64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
EXT=""
if [ "$GOOS" = "windows" ]; then EXT=".exe"; fi
go build -ldflags="-s -w -X main.version=${{ github.ref_name }}" \
-o cheatmd-${{ matrix.goos }}-${{ matrix.goarch }}${EXT} \
./cmd/cheatmd
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: cheatmd-${{ matrix.goos }}-${{ matrix.goarch }}
path: cheatmd-*
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
generate_release_notes: true