From 42d51a1067bd2b5ca13c47ba1a1778c2a7b282ca Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Mon, 11 Sep 2023 21:14:05 +0200 Subject: [PATCH] ci: Publish `codemeta.json` as release asset --- .github/workflows/codemeta.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/codemeta.yaml b/.github/workflows/codemeta.yaml index 62179671..c6b3a07f 100644 --- a/.github/workflows/codemeta.yaml +++ b/.github/workflows/codemeta.yaml @@ -44,3 +44,14 @@ jobs: name: codemeta.json - name: validate codemeta run: eossr-metadata-validator codemeta.json + publish: + needs: validate + runs-on: ubuntu-latest + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + steps: + - uses: actions/download-artifact@v3 + with: + name: codemeta.json + - uses: svenstaro/upload-release-action@v2 + with: + file: codemeta.json