-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (36 loc) · 1.19 KB
/
Copy pathrelease.yml
File metadata and controls
42 lines (36 loc) · 1.19 KB
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
name: "Create Release"
on:
workflow_dispatch:
# workflow_run:
# workflows: [SonarCloud Scan]
# types:
# - completed
jobs:
on-success:
name: "Release"
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get semantic version from file
id: getSemver
run: echo "::set-output name=semver::$(cat VERSION | tr -d ' \t\n\r' )"
# - name: show semantic version from file
# id: showSemver
# run: echo "${{ steps.getSemver.outputs.semver }}"
- name: Create Tag
uses: negz/create-tag@v1
with:
version: "${{ steps.getSemver.outputs.semver }}"
message: "${{ steps.getSemver.outputs.semver }}"
token: "${{ secrets.GITHUB_TOKEN }}"
- name: "Create Release"
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ steps.getSemver.outputs.semver }}"
prerelease: false
title: "Development Build - ${{ steps.getSemver.outputs.semver }}"
# files: |
# requirements.txt
# ttsstt/*