Update workflows
This commit is contained in:
parent
370a902a96
commit
c527dbbcfe
1 changed files with 16 additions and 5 deletions
|
@ -3,7 +3,7 @@ name: CI/CD
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
build-linux:
|
||||
name: Linux-x86-${{ matrix.compiler }}
|
||||
runs-on: node-bookworm
|
||||
strategy:
|
||||
|
@ -34,15 +34,26 @@ jobs:
|
|||
uses: forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: Linux-x86-${{ matrix.compiler }}-${{ github.sha }}.zip
|
||||
path: dist/photomode-linux.zip
|
||||
path: photomode
|
||||
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
|
||||
uses: actions/forgejo-release@v2
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
url: https://code.nullprop.sh
|
||||
direction: upload
|
||||
release-dir: dist
|
||||
tag: "${{ github.ref_name }}-${{ matrix.compiler }}" # this sucks! let me add files to same release tag from multiple jobs...
|
||||
release-dir: artifacts
|
||||
tag: "${{ github.ref_name }}"
|
||||
token: ${{ secrets.TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue