Skip to content

Commit 977fc15

Browse files
Update workflow to copy symlink instead of move it
1 parent ea69368 commit 977fc15

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ jobs:
3131
--format iso --system ${{ matrix.architecture }}-linux \
3232
--flake .#${{ matrix.architecture }} --out-link result
3333
- name: Rename generated ISO file to reflect version and architecture
34-
run: >
35-
mv $(find result/iso/ -name "nixos-*.iso" -print -quit) \
34+
run: |
35+
REAL_ISO_FILENAME = $(readlink -f $(find result/iso/ -name "nixos-*.iso" -print -quit))
36+
cp "$REAL_ISO_FILENAME" \
3637
result/iso/nixos-cloud-init-installer-${{ github.ref_name }}-${{ matrix.architecture }}.iso
3738
- name: Upload build artifact
3839
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)