-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.3 KB
/
release-workflow.yml
File metadata and controls
37 lines (32 loc) · 1.3 KB
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
27
28
29
30
31
32
33
34
35
36
37
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
#
# SPDX-License-Identifier: CC0-1.0
# Release Workflow
# Uses the unified release orchestrator with Maven library publisher
---
name: Release Workflow
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # Stable: v1.0.0
- "v[0-9]+.[0-9]+.[0-9]+-SNAPSHOT*" # Snapshot: v1.0.0-SNAPSHOT
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false # Queue releases, don't cancel partial releases
permissions:
contents: read # Best Security practice. Jobs only get read as base, and then permissions are added as needed
jobs:
release:
uses: diggsweden/reusable-ci/.github/workflows/release-orchestrator.yml@feat/branch-2.1
permissions:
contents: write # Create GitHub releases and tags
packages: write # Publish to GitHub Packages (backup)
id-token: write # Generate OIDC token for Maven Central
actions: read # Needed by container job (even if skipped)
attestations: write # Needed by container job (even if skipped)
security-events: write # Needed by container job (even if skipped)
secrets: inherit # Use org-level MAVEN_CENTRAL credentials and GPG keys
with:
artifacts-config: .github/artifacts.yml
changelog-creator: git-cliff
release-publisher: github-cli