39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: Test NaxOS Module Configurations
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
permissions:
|
|
contents: write
|
|
packages: write
|
|
|
|
jobs:
|
|
test-modules:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Nix
|
|
uses: cachix/install-nix-action@v27
|
|
with:
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
|
|
- name: Evaluate Flake Outputs & Check Syntax
|
|
run: |
|
|
nix flake show
|
|
nix eval .#nixosConfigurations.naxos.config.system.build.toplevel.drvPath
|
|
nix eval .#nixosConfigurations.installer-iso.config.system.build.isoImage.drvPath
|
|
|
|
- name: Publish NaxOS Modules to Gitea Packages
|
|
run: |
|
|
tar -czf naxos-os-modules.tar.gz modules profiles iso flake.nix flake.lock
|
|
curl -s --fail-with-body -X PUT \
|
|
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
|
--upload-file naxos-os-modules.tar.gz \
|
|
"${{ github.server_url }}/api/packages/naxos/generic/naxos-os-modules/1.0.0/naxos-os-modules.tar.gz" || echo "Package upload note: published or exists"
|