diff --git a/.forgejo/workflows/build-image.yml b/.forgejo/workflows/build-image.yml index 2da0e8f..614c5e0 100644 --- a/.forgejo/workflows/build-image.yml +++ b/.forgejo/workflows/build-image.yml @@ -88,24 +88,13 @@ jobs: echo "tag=dev-$(date +%s)" >> $GITHUB_OUTPUT fi - - name: Create Forgejo Release - uses: https://code.forgejo.org/sheik/forgejo-release@v2.6.0 - with: - title: "NixOS Base Image ${{ steps.version.outputs.tag }}" - prerelease: ${{ github.ref_type == 'tag' }} - tag: ${{ steps.version.outputs.tag }} - direction: upload - release-notes: | - This release contains the NixOS base image for Proxmox labeled `${{ steps.version.outputs.tag }}`. - release-dir: "${{ steps.artifact.outputs.download-path }}/nix-support" - - name: Upload image to Proxmox and manage templates run: | set -e ls FOLDER="${{ steps.artifact.outputs.download-path }}" IMAGE_PATH=$(find "$FOLDER" -maxdepth 1 -type f -name '*.vma.zst' | head -n 1) - IMAGE=$(basename "$FULL_PATH") + IMAGE=$(basename "$IMAGE_PATH") REMOTE_NAME="nixos-base-image-${{ steps.version.outputs.tag}}.vma.zst" REMOTE_PATH="/var/lib/vz/dump/$REMOTE_NAME" @@ -124,3 +113,14 @@ jobs: qm clone $TEMPLATE_VMID $LATEST_TEMPLATE_VMID --name nixos-base-latest qm template $TEMPLATE_VMID " + + - name: Create Forgejo Release + uses: https://code.forgejo.org/sheik/forgejo-release@v2.6.0 + with: + title: "NixOS Base Image ${{ steps.version.outputs.tag }}" + prerelease: ${{ github.ref_type == 'tag' }} + tag: ${{ steps.version.outputs.tag }} + direction: upload + release-notes: | + This release contains the NixOS base image for Proxmox labeled `${{ steps.version.outputs.tag }}`. + release-dir: "${{ steps.artifact.outputs.download-path }}/nix-support"