goGoFetch/.forgejo/workflows/release.yaml
nekohepott 0b43c0a225
FUCK
2026-06-25 19:00:26 +03:00

41 lines
1006 B
YAML

name: Build and Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: codeberg-small
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y chafa libglib2.0-dev
- name: Build binary
run: make build
- name: Test binary
run: ./gogofetch --version
- name: Package release artifact
run: |
tar -czvf gogofetch-${{ github.ref_name }}-linux-amd64.tar.gz gogofetch Makefile logos/
- name: Create Release and Upload Asset
uses: https://codeberg.org/forgejo/release-action@v1
with:
files: |
gogofetch-${{ github.ref_name }}-linux-amd64.tar.gz
title: "Release ${{ github.ref_name }}"
note: "Automated binary release for Arch Linux AUR"