From 94d80210d65196032afa35889d8278e5f8f2dba9 Mon Sep 17 00:00:00 2001 From: Shivaraj B H Date: Fri, 27 Oct 2023 15:38:50 +0530 Subject: [PATCH] add github action workflow for https://github.com/flakestry/flakestry.dev --- .github/workflows/flakestry.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/flakestry.yaml diff --git a/.github/workflows/flakestry.yaml b/.github/workflows/flakestry.yaml new file mode 100644 index 00000000..58660afa --- /dev/null +++ b/.github/workflows/flakestry.yaml @@ -0,0 +1,22 @@ +name: "Publish a flake to flakestry" +on: + push: + tags: + - "v?[0-9]+.[0-9]+.[0-9]+" + - "v?[0-9]+.[0-9]+" + workflow_dispatch: + inputs: + tag: + description: "The existing tag to publish" + type: "string" + required: true +jobs: + publish-flake: + runs-on: ubuntu-latest + permissions: + id-token: "write" + contents: "read" + steps: + - uses: flakestry/flakestry-publish@main + with: + version: "${{ inputs.tag || github.ref_name }}"