ci/cd: creating a workflow
Some checks failed
Release / build (amd64, darwin, macos-latest) (push) Has been cancelled
Release / build (amd64, linux, ubuntu-latest) (push) Has been cancelled
Release / build (amd64, windows, windows-latest) (push) Has been cancelled
Release / build (arm64, darwin, macos-latest) (push) Has been cancelled
Release / build (arm64, linux, ubuntu-latest) (push) Has been cancelled
Release / release (push) Has been cancelled

This commit is contained in:
Hayden Hargreaves 2026-04-23 23:13:34 -07:00
parent 30ead5d22c
commit 633e530c91
2 changed files with 56 additions and 0 deletions

53
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,53 @@
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
strategy:
matrix:
include:
- os: macos-latest
goos: darwin
goarch: amd64
- os: macos-latest
goos: darwin
goarch: arm64
- os: ubuntu-latest
goos: linux
goarch: amd64
- os: ubuntu-latest
goos: linux
goarch: arm64
- os: windows-latest
goos: windows
goarch: amd64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26"
- name: Build
run: |
mkdir -p dist
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \
go build -o dist/termtap-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/termtap
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: termtap-${{ matrix.goos }}-${{ matrix.goarch }}
path: dist/*
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
path: dist
- uses: softprops/action-gh-release@v2
with:
files: dist/**/*

View File

@ -19,6 +19,9 @@
go-tools go-tools
gcc_multi gcc_multi
glibc_multi glibc_multi
nodejs_24
tailwindcss_4
tailwindcss-language-server
]; ];
name = "TermTap"; name = "TermTap";