Separate the ci jobs
Some checks failed
Build / build (push) Failing after 23s

This commit is contained in:
2025-06-02 16:21:20 +02:00
parent cd52871632
commit c0a1b0bbd5
2 changed files with 42 additions and 24 deletions

View File

@@ -1,58 +0,0 @@
name: CI
on:
push: {}
jobs:
build:
runs-on: ubuntu
steps:
#- name: Checkout code
# uses: actions/checkout@v3
- name: Install build tools
run: apt update && apt install -y build-essential zip
- name: Compile project
run: make
- name: Save build output
uses: actions/upload-artifact@v3
with:
name: ncsambawatcher
path: ./ncsambawatcher
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu
needs: build
steps:
#- name: Checkout code
# uses: actions/checkout@v3
- name: Download compiled binary
uses: actions/download-artifact@v3
with:
name: ncsambawatcher
- name: Copy files
run: |
mkdir build
cp ncsambawatcher build/ncsambawatcher
cp configs/ncsambawatcher.config.default build/ncsambawatcher.config
cp init.sh config/init.sh
- name: Create release zip
run: |
cd build
zip ../ncsambawatcher.zip ./*
- name: Publish release
uses: actions/create-release@v1
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
files: |
ncsambawatcher.zip