Skip to content

add release info

add release info #86

Workflow file for this run

name: Test build & release
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main
env:
ARTIFACT_PREFIX: tt-rss
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
- run: nix build --no-update-lock-file
- run: nix flake check --no-update-lock-file
- name: Prepare artifacts
run: |
cp result/${{ env.ARTIFACT_PREFIX}}_*.raw ./
sh -c 'sha256sum $0 > $0.sha256' ${{ env.ARTIFACT_PREFIX }}_*.raw
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
retention-days: 5
path: |
${{ env.ARTIFACT_PREFIX }}_*.raw
${{ env.ARTIFACT_PREFIX }}_*.raw.sha256
name: ${{ env.ARTIFACT_PREFIX }}
- name: Release Info
run: nix build --no-update-lock-file .#release-info
- name: Create a github release from tag
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
prerelease: true
files: |
${{ env.ARTIFACT_PREFIX }}_*.raw
${{ env.ARTIFACT_PREFIX }}_*.raw.sha256
body_path: result

Check failure on line 53 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Test build & release

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 53, Col: 7): Unexpected value 'body_path'