-
Notifications
You must be signed in to change notification settings - Fork 15
39 lines (34 loc) · 850 Bytes
/
release.yaml
File metadata and controls
39 lines (34 loc) · 850 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: Release
on:
workflow_dispatch:
inputs:
release:
description: Release
required: true
default: patch
type: choice
options:
- patch
- minor
- major
jobs:
release:
name: Release
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- name: Release | Checkout
uses: actions/checkout@v2
- name: Release | Tag
id: tag
uses: zwaldowski/semver-release-action@v2
with:
bump: ${{ github.event.inputs.release }}
github_token: ${{ secrets.GITHUB_TOKEN }}
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag.outputs.version }}
token: ${{ secrets.CREATE_RELEASE_TOKEN }}