diff --git a/.forgejo/workflows/build-image.yml b/.forgejo/workflows/build-image.yml index 0e181b3..382724d 100644 --- a/.forgejo/workflows/build-image.yml +++ b/.forgejo/workflows/build-image.yml @@ -114,3 +114,27 @@ jobs: proxmox_host={{ env.PROXMOX_HOST }} proxmox_user={{ env.PROXMOX_USER }} remote_image_path_ci={{ steps.build_image.outputs.image_path_from_build }} + + release: + name: Release Image + needs: build + runs-on: ubuntu-latest + if: success() + + steps: + - name: Download Artifact + id: artifact + uses: actions/download-artifact@v3 + with: + name: nixos-base-image + + - 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"