Merge pull request #1 from JeremiahSecrist/main
Added build checks to package and publish to flakehub
This commit is contained in:
commit
164e5ba30d
1 changed files with 24 additions and 0 deletions
24
.github/workflows/flakehub-publish-rolling.yml
vendored
Normal file
24
.github/workflows/flakehub-publish-rolling.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
name: "Publish every Git push to main to FlakeHub"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
jobs:
|
||||||
|
flakehub-publish:
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
permissions:
|
||||||
|
id-token: "write"
|
||||||
|
contents: "read"
|
||||||
|
steps:
|
||||||
|
- uses: "actions/checkout@v3"
|
||||||
|
- name: Check Nix flake inputs
|
||||||
|
uses: DeterminateSystems/flake-checker-action@v4
|
||||||
|
- uses: "DeterminateSystems/nix-installer-action@main"
|
||||||
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
|
- name: Build default package
|
||||||
|
run: nix build
|
||||||
|
- uses: "DeterminateSystems/flakehub-push@main"
|
||||||
|
with:
|
||||||
|
name: "specCon18/YUNODO"
|
||||||
|
rolling: true
|
||||||
|
visibility: "public"
|
||||||
Reference in a new issue