From 9df30225782ab6b319b33e77e28c2ac1517e0f05 Mon Sep 17 00:00:00 2001 From: ifurther <55025025+ifurther@users.noreply.github.com> Date: Sun, 14 Jan 2024 02:48:03 +0800 Subject: [PATCH] update vagrant api --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 864b9a9..0cc843f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,12 @@ jobs: - uses: actions/checkout@v3 - name: Create Vagrant Cloud Box - run: curl "https://vagrantcloud.com/api/v2/box/nixbox/nixos/version/${GITHUB_REF#refs/heads/nixos-}/provider/virtualbox/amd64/upload?access_token=${{ secrets.ATLAS_TOKEN }}" + run: curl \ + --request POST \ + --header "Content-Type: application/json" \ + --header "Authorization: Bearer $ATLAS_TOKEN" \ + https://app.vagrantup.com/api/v2/boxes \ + --data '{ "box": { "username": "nixbox", "name": "nixos" } }' - name: Setup `packer` uses: hashicorp/setup-packer@main