summaryrefslogtreecommitdiff
path: root/.github/workflows/publish.yaml
blob: 9c546d3633fad04785db2992d02f4ad6efcceb91 (plain)
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
name: Publish flake

on:
  push:
    tags:
      - v?[0-9]+.[0-9]+.[0-9]+
  workflow_dispatch:
    inputs:
      tag:
        description: "The existing tag to publish"
        type: "string"
        required: true

jobs:
  flakestry:
    name: Publish to flakestry.dev

    runs-on: ubuntu-latest

    permissions:
      id-token: write

    steps:
      - uses: flakestry/flakestry-publish@main
        with:
          version: "${{ inputs.tag || github.ref_name }}"