Update workflows
Some checks failed
CI/CD / Linux-x86-clang++ (push) Successful in 1m46s
CI/CD / Linux-x86-g++ (push) Successful in 1m53s
CI/CD / Release (push) Failing after 14s

This commit is contained in:
Lauri Räsänen 2025-01-12 00:25:57 +02:00
parent 370a902a96
commit c527dbbcfe

View file

@ -3,7 +3,7 @@ name: CI/CD
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
linux: build-linux:
name: Linux-x86-${{ matrix.compiler }} name: Linux-x86-${{ matrix.compiler }}
runs-on: node-bookworm runs-on: node-bookworm
strategy: strategy:
@ -34,15 +34,26 @@ jobs:
uses: forgejo/upload-artifact@v4 uses: forgejo/upload-artifact@v4
with: with:
name: Linux-x86-${{ matrix.compiler }}-${{ github.sha }}.zip name: Linux-x86-${{ matrix.compiler }}-${{ github.sha }}.zip
path: dist/photomode-linux.zip path: photomode
if-no-files-found: error if-no-files-found: error
release:
name: Release
runs-on: node-bookworm
if: startsWith(github.ref, 'refs/tags/')
needs: build-linux
steps:
- name: Download artifacts
uses: forgejo/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Release - name: Release
uses: actions/forgejo-release@v2 uses: actions/forgejo-release@v2
if: startsWith(github.ref, 'refs/tags/')
with: with:
url: https://code.nullprop.sh url: https://code.nullprop.sh
direction: upload direction: upload
release-dir: dist release-dir: artifacts
tag: "${{ github.ref_name }}-${{ matrix.compiler }}" # this sucks! let me add files to same release tag from multiple jobs... tag: "${{ github.ref_name }}"
token: ${{ secrets.TOKEN }} token: ${{ secrets.TOKEN }}