This commit is contained in:
parent
9132b33e91
commit
4aae45f13b
10 changed files with 588 additions and 180 deletions
|
|
@ -11,7 +11,8 @@ jobs:
|
|||
SERVER: ${{ forgejo.server_url }}
|
||||
REPO: ${{ forgejo.repository }}
|
||||
run: |
|
||||
ISO="result/iso/mirea-nixos-installer.iso"
|
||||
ISO_NAME=$(nix eval --raw ./installer#nixosConfigurations.installer.config.isoImage.isoName)
|
||||
ISO="result/iso/$ISO_NAME"
|
||||
NEW_SHA=$(sha256sum "$ISO" | awk '{print $1}')
|
||||
|
||||
LATEST_BODY=$(curl -sf \
|
||||
|
|
@ -37,7 +38,7 @@ jobs:
|
|||
curl -sf -X POST \
|
||||
-H "Authorization: token $TOKEN" \
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
"$SERVER/api/v1/repos/$REPO/releases/$RELEASE_ID/assets?name=mirea-nixos-installer.iso" \
|
||||
"$SERVER/api/v1/repos/$REPO/releases/$RELEASE_ID/assets?name=$ISO_NAME" \
|
||||
--data-binary "@$ISO"
|
||||
|
||||
echo "Published release $TAG (sha256: $NEW_SHA)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue