Skip to content

Commit

Permalink
worfklows: add flakehub integration. (#50)
Browse files Browse the repository at this point in the history
Add an integration workflow with flakehub.
Change nix installer Github Action to
DeterminateSystems.
  • Loading branch information
gmodena authored Feb 24, 2024
1 parent a243cb0 commit 09d07c7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/flakehub-publish-tagged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Publish tags to FlakeHub"
on:
push:
tags:
- "v?[0-9]+.[0-9]+.[0-9]+*"
workflow_dispatch:
inputs:
tag:
description: "The existing tag to publish to FlakeHub"
type: "string"
required: true
jobs:
flakehub-publish:
runs-on: "ubuntu-latest"
permissions:
id-token: "write"
contents: "read"
steps:
- uses: "actions/checkout@v3"
with:
ref: "${{ (inputs.tag != null) && format('refs/tags/{0}', inputs.tag) || '' }}"
- uses: "DeterminateSystems/nix-installer-action@main"
- uses: "DeterminateSystems/flakehub-push@main"
with:
visibility: "public"
name: "gmodena/nix-flatpak"
tag: "${{ inputs.tag }}"

2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
- uses: DeterminateSystems/nix-installer-action@v4
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix flake check

0 comments on commit 09d07c7

Please sign in to comment.