File tree 3 files changed +38
-34
lines changed
3 files changed +38
-34
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ pull_request :
3
+ types :
4
+ - closed
5
+ branches :
6
+ - main
7
+
8
+ name : Create Release
9
+
10
+ jobs :
11
+ github-release :
12
+ name : Github Release
13
+ if : github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'releases/')
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@v2
18
+ - name : Extract version
19
+ id : extract_version
20
+ run : |
21
+ BRANCH="${{ github.event.pull_request.head.ref }}"
22
+ VERSION=${BRANCH:10}
23
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
24
+ - name : Create Release
25
+ id : create_release
26
+ uses : actions/create-release@v1
27
+ env :
28
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
+ with :
30
+ tag_name : v${{ steps.extract_version.outputs.version }}
31
+ release_name : Release v${{ steps.extract_version.outputs.version }}
32
+ draft : true
33
+ prerelease : false
34
+ generate_release_notes : true
35
+ commitish : ${{ github.event.pull_request.head.sha }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -436,12 +436,9 @@ edition = "2021"
436
436
# Releasing
437
437
438
438
1 . [ Trigger] ( https://github.com/cloudflare/workers-rs/actions/workflows/create-release-pr.yml ) a workflow to create a release PR.
439
- 1 . Review version changes and release notes.
440
- 1 . Merge PR.
441
-
442
- A GitHub release will be created and crates (` worker-sys ` , ` worker-macros ` , ` worker ` )
443
- will be published automatically.
444
-
439
+ 1 . Review version changes and merge PR.
440
+ 1 . A draft GitHub release will be created. Author release notes and publish when ready.
441
+ 1 . Crates (` worker-sys ` , ` worker-macros ` , ` worker ` ) will be published automatically.
445
442
446
443
# Contributing
447
444
You can’t perform that action at this time.
0 commit comments