mod(action): update zig workflow from template
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 29s

This commit is contained in:
2024-10-06 12:02:31 +02:00
parent f93e27fc8d
commit 73991389f6
2 changed files with 27 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
name: Release Zig Application
on:
release:
types: [published]
workflow_run:
workflows: [Zig Project Action]
types: [completed]
jobs:
release:
name: Release zig project
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup zig installation
uses: mlugg/setup-zig@v1
with:
version: 0.13.0
- name: Run tests
run: zig build --release=fast
- name: Release build artifacts
uses: akkuman/gitea-release-action@v1.3.2
with:
files: |-
./zig-out/bin/**

View File

@@ -4,8 +4,6 @@ on:
branches: [main] branches: [main]
pull_request: pull_request:
types: [opened, synchronize, reopened] types: [opened, synchronize, reopened]
release:
types: [published]
jobs: jobs:
run: run: