Skip to content

Commit

Permalink
Add: GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
WenSimEHRP committed May 13, 2024
1 parent b78fb1a commit 7dd89f1
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{yml,yaml}]
indent_size = 2
51 changes: 51 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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' }}

0 comments on commit 7dd89f1

Please sign in to comment.