cordle/.gitea/workflows/release.yml
Gregory Gauthier 488501ac0e
All checks were successful
Build / build (push) Successful in 15s
add debug list to 'release archive' step
2026-02-02 11:44:20 +00:00

43 lines
1010 B
YAML

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
ls cordle-${VERSION}-linux-amd64.tar.gz* # For debugging
- name: Create Release
uses: https://gitea.com/actions/release-action@main
with:
files: |
release/*.tar.gz
release/*.sha256
api_key: ${{ secrets.RELEASE_TOKEN }}