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