diff --git a/.forgejo/workflows/build-image.yml b/.forgejo/workflows/build-image.yml index b0efa14..64d83da 100644 --- a/.forgejo/workflows/build-image.yml +++ b/.forgejo/workflows/build-image.yml @@ -24,15 +24,6 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - - name: Set VERSION from tag or fallback - id: version - run: | - if [ -n "${CI_COMMIT_TAG}" ]; then - echo "tag=${CI_COMMIT_TAG}" >> $GITHUB_OUTPUT - else - echo "tag=dev-$(date +%s)" >> $GITHUB_OUTPUT - fi - - name: Enable experimental features run: | mkdir -p ~/.config/nix @@ -88,15 +79,25 @@ jobs: with: name: nixos-base-image + - name: Set VERSION from tag or fallback + id: version + run: | + if [ -n "${CI_COMMIT_TAG}" ]; then + echo "tag=${CI_COMMIT_TAG}" >> $GITHUB_OUTPUT + else + 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 }} + release-dir: "${{ steps.artifact.outputs.download-path }}/nix-support" - name: Upload image to Proxmox and manage templates run: |