Filter flake registry to only contain real flakes #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" | |
- 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 |