From d4cf44525adc93e5b5dd8dbf3e4a2e8b32cc0d4e Mon Sep 17 00:00:00 2001 From: galargh Date: Wed, 24 Jul 2024 16:47:00 +0100 Subject: [PATCH] ci: automate creation of GitHub releases and tags --- .github/workflows/release-check.yml | 21 +++++++++++++++++++++ .github/workflows/releaser.yml | 21 +++++++++++++++++++++ version.json | 3 +++ 3 files changed, 45 insertions(+) create mode 100644 .github/workflows/release-check.yml create mode 100644 .github/workflows/releaser.yml create mode 100644 version.json diff --git a/.github/workflows/release-check.yml b/.github/workflows/release-check.yml new file mode 100644 index 00000000..681b5ef1 --- /dev/null +++ b/.github/workflows/release-check.yml @@ -0,0 +1,21 @@ +name: Release Checker + +on: + pull_request_target: + paths: ["version.json"] + types: [ opened, synchronize, reopened, labeled, unlabeled ] + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + release-check: + uses: ipdxco/unified-github-workflows/.github/workflows/release-check.yml@v1.0 + with: + sources: '["version.json"]' diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml new file mode 100644 index 00000000..a2b2a044 --- /dev/null +++ b/.github/workflows/releaser.yml @@ -0,0 +1,21 @@ +name: Releaser + +on: + push: + paths: ["version.json"] + workflow_dispatch: + +permissions: + contents: write + +concurrency: + group: ${{ github.workflow }}-${{ github.sha }} + cancel-in-progress: true + +jobs: + releaser: + uses: ipdxco/unified-github-workflows/.github/workflows/releaser.yml@v1.0 + with: + sources: '["version.json"]' + secrets: + UCI_GITHUB_TOKEN: ${{ secrets.UCI_GITHUB_TOKEN }} diff --git a/version.json b/version.json new file mode 100644 index 00000000..f48cbbd4 --- /dev/null +++ b/version.json @@ -0,0 +1,3 @@ +{ + "version": "v1.28.0" +}