nix-flakestry.yml 648 B

1234567891011121314151617181920212223
  1. # Make the flake discoverable on https://flakestry.dev
  2. name: "Publish a flake to flakestry"
  3. on:
  4. push:
  5. tags:
  6. - "v?[0-9]+.[0-9]+.[0-9]+"
  7. - "v?[0-9]+.[0-9]+"
  8. workflow_dispatch:
  9. inputs:
  10. tag:
  11. description: "The existing tag to publish"
  12. type: "string"
  13. required: true
  14. jobs:
  15. publish-flake:
  16. runs-on: ubuntu-latest
  17. permissions:
  18. id-token: "write"
  19. contents: "read"
  20. steps:
  21. - uses: flakestry/flakestry-publish@main
  22. with:
  23. version: "${{ inputs.tag || github.ref_name }}"