Trigger build

This commit is contained in:
Dominik Werder
2023-09-18 11:40:03 +02:00
parent b175516b62
commit 70b0ee0c69

View File

@@ -114,7 +114,7 @@ jobs:
with:
name: ${{env.SELFPKGTGT}}
path: ${{steps.wdset.outputs.gh}}/build/daqingest/target/release/daqingest
- run: echo "{\"tag_name\":\"$DAQVER\", \"name\":\"$SELFPKG\", \"draft\":true, \"prerelease\":true}" > create-rel.json
- run: echo "{\"tag_name\":\"$DAQVER\", \"name\":\"$SELFPKG\", \"draft\":false, \"prerelease\":false}" > create-rel.json
- run: "curl -v -o rel.json -L -X POST -H content-type:application/json -H 'accept:application/vnd.github+json' -H 'authorization:bearer ${{secrets.github_token}}' -H x-github-api-version:2022-11-28 -T create-rel.json https://api.github.com/repos/paulscherrerinstitute/daqingest/releases"
- run: cat rel.json
- run: "RELID=$(python -c 'import json; x=json.load(open(\"rel.json\")); print(x[\"id\"])') && curl -v -o relass.json -L -X POST -H content-type:application/octet-stream -H 'accept:application/vnd.github+json' -H 'authorization:bearer ${{secrets.github_token}}' -H x-github-api-version:2022-11-28 -T ${{steps.wdset.outputs.gh}}/build/daqingest/target/release/daqingest https://uploads.github.com/repos/paulscherrerinstitute/daqingest/releases/$RELID/assets?name=$SELFPKGTGT"