Skip to content

Release

Release #3

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' }}