-
-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (53 loc) · 1.51 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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