mirror of
https://github.com/GeopJr/BLAHAJ.git
synced 2025-01-22 08:36:30 +01:00
a1fcded3c1
* feat: load custom colors yaml at runtime * feat: handle parsing errors and update README, ci
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
name: Release
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
build_linux_static:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: crystallang/crystal:latest-alpine
|
|
steps:
|
|
- name: Download source
|
|
uses: actions/checkout@v4
|
|
- name: Retrieve version
|
|
run: |
|
|
echo "VERSION=$(shards version)" >> "$GITHUB_OUTPUT"
|
|
id: version
|
|
- name: Build
|
|
run: make static
|
|
- name: Make binary executable
|
|
run: chmod +x bin/blahaj
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: blahaj-${{ steps.version.outputs.VERSION }}-linux-x86_64-static
|
|
path: bin/blahaj
|
|
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
needs: build_linux_static
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/download-artifact@v2
|
|
with:
|
|
path: ./GH_ARTIFACTS
|
|
- name: Make all binaries executable
|
|
run: chmod +x GH_ARTIFACTS/**/*
|
|
- name: Create zips
|
|
run: cd GH_ARTIFACTS && find . -maxdepth 1 -mindepth 1 -type d -execdir zip -jr '{}.zip' '{}' \; && cd ..
|
|
- uses: softprops/action-gh-release@v1
|
|
with:
|
|
draft: true
|
|
files: |
|
|
GH_ARTIFACTS/*.zip
|