workflow: make tarball before uploading
This commit is contained in:
parent
39e1b2dcaf
commit
1067cba34b
2 changed files with 12 additions and 3 deletions
10
.github/workflows/build-machines-and-homes.yml
vendored
10
.github/workflows/build-machines-and-homes.yml
vendored
|
@ -75,11 +75,14 @@ jobs:
|
|||
run: |
|
||||
nix run github:zhaofengli/attic push main result
|
||||
|
||||
- name: prepare tarball to upload
|
||||
run: nix run github:nixos/nixpkgs#gnutar hcvf result.tar result
|
||||
|
||||
- name: upload result
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.machine }}-${{ matrix.os }}
|
||||
path: result
|
||||
path: result.tar
|
||||
if-no-files-found: error
|
||||
|
||||
build-homes:
|
||||
|
@ -141,9 +144,12 @@ jobs:
|
|||
run: |
|
||||
nix run github:zhaofengli/attic push main result
|
||||
|
||||
- name: prepare tarball to upload
|
||||
run: nix run github:nixos/nixpkgs#gnutar hcvf result.tar result
|
||||
|
||||
- name: upload result
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.home }}-${{ matrix.os }}
|
||||
path: result
|
||||
path: result.tar
|
||||
if-no-files-found: error
|
||||
|
|
5
.github/workflows/build-packages.yml
vendored
5
.github/workflows/build-packages.yml
vendored
|
@ -50,9 +50,12 @@ jobs:
|
|||
run: |
|
||||
nix run github:zhaofengli/attic push main result
|
||||
|
||||
- name: prepare tarball to upload
|
||||
run: nix run github:nixos/nixpkgs#gnutar hcvf result.tar result
|
||||
|
||||
- name: upload result
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.package }}-${{ matrix.os }}
|
||||
path: result
|
||||
path: result.tar
|
||||
if-no-files-found: error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue