Release #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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' }} |