Skip to content

Commit a46ec11

Browse files
BUILD-4567: add release action
Signed-off-by: Jayadeep Kinavoor Madam <[email protected]>
1 parent e493891 commit a46ec11

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: sonar-release
3+
# This workflow is triggered when publishing a new github release
4+
# yamllint disable-line rule:truthy
5+
on:
6+
release:
7+
types:
8+
- published
9+
workflow_dispatch:
10+
11+
env:
12+
PYTHONUNBUFFERED: 1
13+
14+
jobs:
15+
release:
16+
permissions:
17+
id-token: write
18+
contents: write
19+
uses: SonarSource/gh-action_release/.github/workflows/main.yaml@v5
20+
with:
21+
publishToPyPI: true
22+
publishToTestPyPI: true

.github/workflows/release_dry_run.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: sonar-release
3+
# This workflow is triggered when publishing a new github release
4+
# yamllint disable-line rule:truthy
5+
on:
6+
release:
7+
types:
8+
- published
9+
workflow_dispatch:
10+
11+
env:
12+
PYTHONUNBUFFERED: 1
13+
14+
jobs:
15+
release:
16+
permissions:
17+
id-token: write
18+
contents: write
19+
uses: SonarSource/gh-action_release/.github/workflows/main.yaml@v5
20+
with:
21+
dryRun: true
22+
publishToPyPI: true
23+
publishToTestPyPI: true

0 commit comments

Comments
 (0)