Skip to content

Commit

Permalink
ci(gha): build and store tarball artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
LGUG2Z committed Sep 30, 2023
1 parent 45893ec commit e42a73f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'build'

on:
push:
branches:
- master
- feature/*
- hotfix/*
pull_request: {}
workflow_call: {}

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: DeterminateSystems/nix-installer-action@v4
with:
github-token: ${{ github.token }}

- name: Build tarballs 🛠️
run: |
nix_bin=$(which nix)
sudo $nix_bin run .#nixosConfigurations.nixos.config.system.build.tarballBuilder
- name: Upload tarball 📤
uses: actions/upload-artifact@v3
with:
name: tarball
path: nixos-wsl.tar.gz

0 comments on commit e42a73f

Please sign in to comment.