Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.

Commit 2e0420b

Browse files
authored
feat(releasing): Add release script to CDC (#36)
We will have to cut releases.
1 parent 5070a2e commit 2e0420b

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.craft.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
minVersion: "0.21.1"
2+
3+
github:
4+
owner: getsentry
5+
repo: cdc
6+
# TODO: Add a changelog
7+
changelogPolicy: none
8+
9+
artifactProvider:
10+
name: none
11+
12+
preReleaseCommand: ''
13+
14+
targets:
15+
- name: github
16+
- id: release
17+
name: docker
18+
source: us.gcr.io/sentryio/cdc
19+
target: getsentry/cdc
20+
- id: latest
21+
name: docker
22+
source: us.gcr.io/sentryio/cdc
23+
target: getsentry/cdc
24+
targetFormat: '{{{target}}}:latest'

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: Version to release
8+
required: true
9+
force:
10+
description: Force a release even when there are release-blockers (optional)
11+
required: false
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
name: 'Release a new version'
17+
steps:
18+
- uses: actions/checkout@v2
19+
with:
20+
token: ${{ secrets.GH_RELEASE_PAT }}
21+
22+
- name: Prepare release
23+
uses: getsentry/action-prepare-release@v1
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
26+
with:
27+
version: ${{ github.event.inputs.version }}
28+
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)