Skip to content

Commit 807306c

Browse files
committed
feat(ci): add draft release workflow
1 parent 7ecfb95 commit 807306c

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/release.yaml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Create draft release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write # For creating releases.
8+
discussions: write # For creating a discussion.
9+
10+
# Cancel in-progress runs for pull requests when developers push
11+
# additional changes
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 0
23+
24+
# TODO: delete our release scripts and the ci/lib.sh funcs they use
25+
- name: Download artifacts
26+
uses: dawidd6/action-download-artifact@v2
27+
id: download
28+
with:
29+
branch: main
30+
workflow: ci.yaml
31+
workflow_conclusion: completed
32+
check_artifacts: true
33+
name: release-packages
34+
path: ./release-packages
35+
36+
- uses: softprops/action-gh-release@v1
37+
with:
38+
draft: true
39+
discussion_category_name: "📣 Announcements"
40+
files: ./release-packages/*
41+
body_path: ci/build/release-notes.txt

ci/build/release-notes.txt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Code v99.99.999
2+
3+
### Changed
4+
### Added
5+
### Deprecated
6+
### Removed
7+
### Fixed
8+
### Security

0 commit comments

Comments
 (0)