-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (46 loc) · 1.37 KB
/
create_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
name: Release
on:
workflow_dispatch:
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
continue-on-error: true
- name: Install Dependencies
run: |
bash install_dependencies.sh
pip3 install -r requirements.txt
continue-on-error: false
- name: Build
run: make all
continue-on-error: true
- name: Set Tag Name
id: set_tag
run: echo "::set-output name=tag_name::$(date +'%Y%m%d%H%M%S')"
shell: bash
- name: Check Build Status
id: check_status
run: |
if [ "${{ job.status }}" != "success" ]
then
echo "One or more steps failed. Skipping release creation."
echo "::set-output name=skip_release::true"
fi
continue-on-error: true
- name: Create Release
uses: actions/create-release@v1
with:
tag_name: ${{ steps.set_tag.outputs.tag_name }}
release_name: Release ${{ steps.set_tag.outputs.tag_name }}
body: |
Changes in this Release:
- Feature 1
- Feature 2
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ steps.check_status.outputs.skip_release != 'true' }}