Try using the repository
This commit is contained in:
+9
-7
@@ -24,15 +24,17 @@ build:
|
||||
- nix
|
||||
script:
|
||||
- nix build -L
|
||||
- ls -la
|
||||
- cp result/sword.tar.xz ./sword-$TAG.tar.xz
|
||||
- echo "BUILD_ID=$CI_JOB_ID" > build.env
|
||||
- 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}"
|
||||
- echo "X86_TARBALL=${URL}" > build.env
|
||||
artifacts:
|
||||
paths:
|
||||
- sword-$TAG.tar.xz
|
||||
reports:
|
||||
dotenv: build.env
|
||||
expire_in: never
|
||||
|
||||
"Create release":
|
||||
stage: release
|
||||
@@ -50,4 +52,4 @@ build:
|
||||
assets:
|
||||
links:
|
||||
- name: Windows (x86-64) release
|
||||
url: "https://src.thehellings.com/greg/mingw-nix-build/-/jobs/$BUILD_ID/artifacts/file/sword-$TAG.tar.xz"
|
||||
url: "${X86_TARBALL}"
|
||||
|
||||
Reference in New Issue
Block a user