-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (35 loc) · 959 Bytes
/
release-next-publish.yaml
File metadata and controls
39 lines (35 loc) · 959 Bytes
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
name: Publish release now
on:
pull_request:
types:
- closed
branches:
- 'master'
jobs:
if_merged:
if: github.head_ref == 'release/next' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
upload_url: ${{ steps.draft.outputs.upload_url }}
steps:
- name: Publish release
uses: release-drafter/release-drafter@v6.2.0
id: draft
env:
GITHUB_TOKEN: ${{ github.token }}
with:
config-name: release-drafter.yaml
publish: true
- name: Checkout repository
uses: actions/checkout@v6
- name: Delete branch
continue-on-error: true
run: git push origin --delete 'release/next'
do_publish:
name: Call release workflow
needs: if_merged
uses: ./.github/workflows/publish.yaml
with:
upload_url: ${{ needs.if_merged.outputs.upload_url }}