From 2bbae9fe4d7b71c82b1a6978a71701e5dd090847 Mon Sep 17 00:00:00 2001 From: Graeme Davidson Date: Sun, 25 Feb 2024 10:40:15 +0000 Subject: [PATCH] added release workflow --- .github/dependabot.yml | 4 ++++ .github/release.yml | 20 +++++++++++++++++++ .github/workflows/release.yml | 18 +++++++++++++++++ .../workflows/{main-branch.yml => tests.yml} | 0 CHANGELOG.md | 10 ++++++++++ 5 files changed, 52 insertions(+) create mode 100644 .github/release.yml create mode 100644 .github/workflows/release.yml rename .github/workflows/{main-branch.yml => tests.yml} (100%) create mode 100644 CHANGELOG.md diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3ecf774..68ca4f2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,7 +7,11 @@ updates: directory: / schedule: interval: monthly + commit-message: + prefix: "ci" - package-ecosystem: docker directory: / schedule: interval: monthly + commit-message: + prefix: "ci" diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..786cfc2 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,20 @@ +--- +changelog: + exclude: + labels: + - ignore-for-release + categories: + - title: Breaking Changes + labels: + - Semver-Major + - breaking-change + - title: New Features + labels: + - Semver-Minor + - enhancement + - title: Other Changes + labels: + - "*" + - title: Dependencies (dependabot) + labels: + - dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..252b68a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +--- +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Generate release notes + run: | + gh release create ${{github.ref_name}} --generate-notes --latest --notes "[Changelog](./CHANGELOG.md), [Documentation](./docs)" diff --git a/.github/workflows/main-branch.yml b/.github/workflows/tests.yml similarity index 100% rename from .github/workflows/main-branch.yml rename to .github/workflows/tests.yml diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..c612900 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,10 @@ +# CHANGELOG +https://keepachangelog.com/en/1.0.0/ + +## [v0.3.0-alpha] - 25/02/24 + +### Added + +- Basic releases workflow to generate GitHub release when pushing a tag. + - Define release config for use with issue labelling +- Changelog