-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (32 loc) · 967 Bytes
/
release.yml
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
name: tag-or-release
on:
workflow_dispatch:
inputs:
tag_or_release:
description: 'must be string of either "tag" or "release"'
required: true
default: 'tag'
name:
description: 'the tag or release name, i.e. v1.0.0'
required: true
source_branch:
description: 'the branch to tag or release'
required: true
default: "main"
jobs:
tag_or_release:
runs-on: ubuntu-20.04
name: tag or release the given branch with the given name
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: release
id: release
uses: ./.github/actions/release
env:
tag_or_release: "${{ github.event.inputs.tag_or_release }}"
name: "${{ github.event.inputs.name }}"
source_branch: "${{ github.event.inputs.source_branch }}"
token: "${{ secrets.GITHUB_TOKEN }}"