-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.06 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Publish
on: push
# push:
# tags: ["v[0-9]+.[0-9]+.[0-9]+"]
# workflow_dispatch:
# inputs:
# tag:
# description: The existing tag to publish
# type: string
# required: true
concurrency:
group: publish
cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs:
# https://flakehub.com/new
flakehub:
if: false
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.tag || github.ref_name }}
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v8
- name: Publish flake
uses: DeterminateSystems/flakehub-push@v3
with:
tag: ${{ inputs.tag || github.ref_name }}
# https://flakestry.dev/publish
flakestry:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- v1.0.0
fail-fast: true
steps:
- name: Publish flake
uses: flakestry/flakestry-publish@main
with:
version: ${{ matrix.version }}