From 541b3e60b8ad1dbdc292122546199e2f81266b1d Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 15 Jun 2024 16:03:55 +0200 Subject: [PATCH] feat(ci): Reuse workflows Signed-off-by: Steffen Vogel --- .github/workflows/{reuse.yaml => check.yaml} | 14 ++++---------- .github/workflows/mirror.yaml | 14 ++++++++++++++ .github/workflows/release.yaml | 19 +++++++++++++++++++ 3 files changed, 37 insertions(+), 10 deletions(-) rename .github/workflows/{reuse.yaml => check.yaml} (63%) create mode 100644 .github/workflows/mirror.yaml create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/reuse.yaml b/.github/workflows/check.yaml similarity index 63% rename from .github/workflows/reuse.yaml rename to .github/workflows/check.yaml index 9ff1757..8b69c28 100644 --- a/.github/workflows/reuse.yaml +++ b/.github/workflows/check.yaml @@ -3,8 +3,8 @@ # yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json --- -name: Tests - +name: Compliance Checks + on: push: branches: @@ -12,11 +12,5 @@ on: pull_request: jobs: - test: - name: REUSE - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: REUSE Compliance Check - uses: fsfe/reuse-action@v3 + reuse: + uses: cunicu/.github/.github/workflows/reuse.yaml@v0.2.0 diff --git a/.github/workflows/mirror.yaml b/.github/workflows/mirror.yaml new file mode 100644 index 0000000..7e27142 --- /dev/null +++ b/.github/workflows/mirror.yaml @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: 2023-2024 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + +# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json +--- +name: Mirror to Codeberg + +on: [push, delete] + +jobs: + mirror: + uses: cunicu/.github/.github/workflows/mirror.yaml@v0.2.0 + secrets: + CODEBERG_SSH_KEY: ${{ secrets.CODEBERG_SSH_KEY }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..705118a --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: 2023-2024 Steffen Vogel +# SPDX-License-Identifier: Apache-2.0 + +# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json +--- +name: Release + +on: + push: + branches: + - main + +jobs: + semver-tag: + uses: cunicu/.github/.github/workflows/release.yaml@v0.2.0 + secrets: + PAT: ${{ secrets.PAT }} + permissions: + contents: write \ No newline at end of file