Skip to content

Go back to main version of devenv #21

Go back to main version of devenv

Go back to main version of devenv #21

# TODO remove (https://github.com/DeterminateSystems/flakehub-push/issues/79)
name: "Publish flake to FlakeHub"
on: { push: { branches: [ "main" ] } }
jobs:
flakehub-publish:
runs-on: "ubuntu-latest"
permissions: { id-token: "write", contents: "read" }
steps:
- uses: "actions/checkout@v3"
- uses: "DeterminateSystems/nix-installer-action@main"
- run: nix flake lock --update-input systems # See nix#3978
- id: version
run: |
set -eu
timestamp=${{ github.event.head_commit.timestamp }}
minor="$(date -ud "$timestamp" +%Y%m%d)"
printf 'minor=%s\n' "$minor" >>"$GITHUB_OUTPUT"
- uses: "DeterminateSystems/flakehub-push@main"
with:
name: "kip93/npp"
visibility: "public"
rolling: true
rolling-minor: ${{ steps.version.outputs.minor }}
spdx-expression: GPL-3.0-or-later