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]
|
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 }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue