-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (46 loc) · 1.58 KB
/
tag.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
name: Tag
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup Python
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.7'
# Display Version
- name: Install Hooktest
run: pip3 install HookTest
- name: Run Hooktest
run: |
hooktest ./ --scheme tei --workers 3 --manifest --console table --allowfailure
hooktest-build --travis ./
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag_prefix: ""
default_bump: "patch"
dry_run: true
- name: Clean and Tag
run: |
git config --global user.email "[email protected]"
git config --global user.name "Thibault Clérice - Builder"
git add data
git commit -m "${{ steps.tag_version.outputs.new_tag }}"
git tag ${{ steps.tag_version.outputs.new_tag }} -a -m "Automatic cleaning before release"
git push --tags
- name: Create a GitHub release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}