-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (31 loc) · 1.01 KB
/
createReleaseGitHub.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: Create release Github
# triggered manually or if file version changes
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'fastHistory/config/default_version.txt'
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get release version from version file
run: |
echo "FH_RELEASE_VERSION=$(cat $GITHUB_WORKSPACE/fastHistory/config/default_version.txt | tr -d '\n')" >> $GITHUB_ENV
- name: Show version
run: echo ${{ env.FH_RELEASE_VERSION }}
- name: Create Github release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: v${{ env.FH_RELEASE_VERSION }}
release_name: v${{ env.FH_RELEASE_VERSION }}
draft: false
prerelease: false