Mabye this works better for Gitlab CI

This commit is contained in:
Greg Hellings
2024-11-15 10:36:44 -06:00
parent e69d754a21
commit 86d747416b
+2 -2
View File
@@ -24,8 +24,8 @@ build:
- nix - nix
script: script:
- nix build -L - nix build -L
- "URL=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/sword-utils/${TAG}/sword-${TAG}.tar.xz" - URL=$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/sword-utils/$TAG/sword-$TAG.tar.xz
- curl --fail-with-body --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ./result/sword.tar.xz "${URL}" - curl --fail-with-body --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./result/sword.tar.xz "${URL}"
- echo "X86_TARBALL=${URL}" > build.env - echo "X86_TARBALL=${URL}" > build.env
artifacts: artifacts:
reports: reports: