Skip to content

Commit d6c04b4

Browse files
authored
feat: release on FlakeHub.com too
This allows flake installers to get SemVer-compatible upgrades with no effort. Cool!
1 parent bc36096 commit d6c04b4

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Publish tags to FlakeHub"
2+
on:
3+
push:
4+
tags:
5+
- "v?[0-9]+.[0-9]+.[0-9]+*"
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: "The existing tag to publish to FlakeHub"
10+
type: "string"
11+
required: true
12+
jobs:
13+
flakehub-publish:
14+
runs-on: "ubuntu-latest"
15+
permissions:
16+
id-token: "write"
17+
contents: "read"
18+
steps:
19+
- uses: "actions/checkout@v3"
20+
with:
21+
ref:
22+
"${{ (inputs.tag != null) && format('refs/tags/{0}', inputs.tag) || '' }}"
23+
- uses: "DeterminateSystems/nix-installer-action@main"
24+
- uses: "DeterminateSystems/flakehub-push@main"
25+
with:
26+
visibility: "public"
27+
name: "copier-org/copier"
28+
tag: "${{ inputs.tag }}"

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ A library and CLI app for rendering project templates.
2525
1. Install Git 2.27 or newer.
2626
1. To use as a CLI app: `pipx install copier`
2727
1. To use as a library: `pip install copier` or `conda install -c conda-forge copier`
28-
1. To use with 100% reproducibility: `nix profile install github:copier-org/copier`
28+
29+
### Nix flake
30+
31+
To install latest Copier release with 100% reproducibility:
32+
33+
```shell
34+
nix profile install 'https://flakehub.com/f/copier-org/copier/*.tar.gz'
35+
```
2936

3037
## Quick start
3138

0 commit comments

Comments
 (0)