chore(CI): Only publish iso
This commit is contained in:
parent
0fa45657f0
commit
0bc2c97d69
2 changed files with 32 additions and 30 deletions
60
.github/workflows/release.yaml
vendored
60
.github/workflows/release.yaml
vendored
|
|
@ -1,29 +1,31 @@
|
|||
# by https://github.com/danth/stylix/blob/master/.github/workflows/docs.yml
|
||||
name: Release
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
jobs:
|
||||
build:
|
||||
name: Release
|
||||
permissions:
|
||||
contents: read
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
extra-conf: |
|
||||
extra-experimental-features = nix-command flakes pipe-operators
|
||||
- name: Set up cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- name: Build ISO
|
||||
run: nix build github:${{ github.repository }}/${{ github.sha }}#iso --no-write-lock-file
|
||||
- name: Prepare ISO for upload
|
||||
run: |
|
||||
cp -r --dereference --no-preserve=mode,ownership result/ public/
|
||||
- name: upload ISO
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
path: path/
|
||||
# by https://github.com/danth/stylix/blob/master/.github/workflows/docs.yml
|
||||
name: Release
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
jobs:
|
||||
build:
|
||||
name: Release
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
extra-conf: |
|
||||
extra-experimental-features = nix-command flakes pipe-operators
|
||||
- name: Set up cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- name: Build ISO
|
||||
run: nix build github:${{ github.repository }}/${{ github.sha }}#iso --no-write-lock-file
|
||||
- name: Prepare ISO for upload
|
||||
run: |
|
||||
cp -r --dereference --no-preserve=mode,ownership result/iso/DashNix.iso DashNix.iso
|
||||
- name: upload ISO
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: |
|
||||
DashNix.iso
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ in {
|
|||
extraGroups = ["wheel"];
|
||||
};
|
||||
|
||||
image.baseName = lib.mkForce "Dashnix";
|
||||
image.baseName = lib.mkForce "DashNix";
|
||||
|
||||
programs = {
|
||||
hyprland = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue