Skip to content

list file tree

list file tree #7

Workflow file for this run

name: Build and Release ISOs
on:
push:
tags:
- '*.*r*'
release:
types: [published]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
system: [x86_64-linux] # [x86_64-linux, aarch64-linux] for future support
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Build ISO
run: nix build .#nixosConfigurations.installer.config.system.build.isoImage
- name: Rename ISO Artifact
run: sudo cp ./result/iso/*.iso ./result/iso/kolyma-installer-${{ matrix.system }}.iso
- name: Give Artifact Permissions
run: sudo chmod 777 ./result/iso/kolyma-installer-${{ matrix.system }}.iso
- name: Upload ISO Artifact
uses: actions/upload-artifact@v3
with:
name: installer-${{ matrix.system }}
path: ./result/iso/*
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download ISO Artifacts
uses: actions/download-artifact@v3
with:
name: installer-x86_64-linux
path: ./iso/x86_64-linux
- name: List file tree
run: |
sudo apt-get install tree
tree ./
- name: Upload ISO (x86_64)
uses:
softprops/action-gh-release@v2
with:
draft: false
prerelease: false
make_latest: true
generate_release_notes: true
files: ./iso/x86_64-linux/kolyma-installer-x86_64.iso