add release workflow to gitea
Some checks failed
Build / build (push) Successful in 15s
Release / release (push) Failing after 14s

This commit is contained in:
Gregory Gauthier 2026-02-02 11:22:58 +00:00
parent f628a12e87
commit d3aeb407f2

View File

@ -0,0 +1,41 @@
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-gitea
steps:
- name: Prep For Local Builds
run: echo "${LOCIP} gitea.comnenos" >> /etc/hosts
- uses: actions/checkout@v4
- name: Install Build Tools
run: |
apt update
apt -y --no-install-recommends install build-essential gcc make
- name: Build
run: make all
- name: Create Release Archive
run: |
VERSION=${GITHUB_REF#refs/tags/}
mkdir -p release
tar -czf release/cordle-${VERSION}-linux-amd64.tar.gz -C build cordle WORDS
cd release
sha256sum cordle-${VERSION}-linux-amd64.tar.gz > cordle-${VERSION}-linux-amd64.tar.gz.sha256
- name: Create Release
uses: https://gitea.com/actions/release-action@main
with:
files: |
release/*.tar.gz
release/*.sha256
api_key: ${{ secrets.RELEASE_TOKEN }}