-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1.09 KB
/
Copy pathci_release.yml
File metadata and controls
44 lines (34 loc) · 1.09 KB
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
defaults:
run:
shell: "bash"
name: "(Reusable) Create GitHub Release"
on:
workflow_call:
secrets:
release-token:
description: "Token to use for creating release."
required: true
jobs:
release:
name: "Create GitHub Release"
runs-on: "ubuntu-24.04"
steps:
- uses: "actions/checkout@v4.2.2"
- name: "Fetch git data"
run: |
set -euo pipefail
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
git fetch --prune --unshallow
- uses: "./.github/actions/install_badabump"
- id: "badabump"
name: "Run badabump"
run: 'badabump-ci prepare_release "${{ github.ref }}"'
- name: "Create new release"
uses: "actions/create-release@v1.1.4"
env:
GITHUB_TOKEN: "${{ secrets.release-token }}"
with:
tag_name: "${{ steps.badabump.outputs.tag_name }}"
release_name: "${{ steps.badabump.outputs.release_name }}"
body: "${{ steps.badabump.outputs.release_body }}"
prerelease: "${{ steps.badabump.outputs.is_pre_release }}"