-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (51 loc) · 1.85 KB
/
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
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
61
name: Bump release version
on:
push:
branches: [ main ]
tags:
- 'v[0-9]+.[0-9]+.[0-9]+.*' # Push events to matching v*, i.e. v1.0, v20.15.10
pull_request:
types: [ closed ]
concurrency: production
permissions: write-all
jobs:
Patch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: 'Minor verison dry run'
id: dryRunTag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DRY_RUN: true
INITIAL_VERSION: 0.1.0
- name: Current tag echo
run: |
echo "Current tag version number is: ${{steps.dryRunTag.outputs.tag}}"
- name: New tag echo
run: |
echo "Next tag version number is: ${{steps.dryRunTag.outputs.new_tag}}"
- name: Current part incremented
run: |
echo "The version increment is: ${{ steps.dryRunTag.outputs.part }}"
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.dryRunTag.outputs.new_tag }}
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
draft: false
prerelease: true
env:
GITHUB_REPOSITORY: nerds-run/odious-ado
- name: Minor version
id: finalRunTag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
INITIAL_VERSION: 0.1.0