-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.8 KB
/
release.yaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Release
on: issue_comment
jobs:
release:
runs-on: ubuntu-latest
if: contains(github.event.comment.body, '/approve-release') && github.event.comment.author_association == 'OWNER'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Get release candidate
id: get_data
uses: ./.github/actions/get_data
- name: create release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ steps.get_data.outputs.version }}
release_name: Release ${{ steps.get_data.outputs.version }}
draft: false
prerelease: false
- name: Download earthlyw artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow: main.yaml
run_id: ${{ steps.get_data.outputs.run_id }}
name: earthlyw
- name: upload earthlyw to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./earthlyw
asset_name: earthlyw
asset_content_type: application/octet-stream
- name: Download ew artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow: main.yaml
run_id: ${{ steps.get_data.outputs.run_id }}
name: ew
- name: upload ew to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ew
asset_name: ew
asset_content_type: application/octet-stream
- uses: lee-dohm/close-matching-issues@v2
if: success()
with:
query: 'label:release-candidate'
token: ${{ secrets.GITHUB_TOKEN }}