Skip to content

Commit

Permalink
Release v1.0.0
Browse files Browse the repository at this point in the history
Initial release

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
  • Loading branch information
oskarirauta committed Apr 14, 2024
1 parent aca4b34 commit e31ccc6
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 7 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: New release
run-name: ${{ github.actor }} is creating a new release ${{ inputs.tagname }}

on:
workflow_dispatch:
inputs:
tagname:
description: "tag name"
required: true
releasename:
description: "release name"
required: false
latest:
description: "mark as latest release"
type: boolean
default: true
deep:
description: 'create archive recursively on all levels'
type: boolean
default: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: create release
uses: oskarirauta/create-release-action@v1
with:
token: ${{ github.token }}
tag: ${{ inputs.tagname }}
release: ${{ inputs.releasename }}
latest: ${{ inputs.latest }}
- name: report
shell: bash
run: |
echo "created release ${{ inputs.releasename }} with tag ${{ inputs.tagname }}" >> $GITHUB_STEP_SUMMARY
- name: create asset
uses: oskarirauta/upload-recursive-asset-action@v1
with:
token: ${{ github.token }}
tag: ${{ inputs.tagname }}
id: ${{ env.release_id }}
deep: ${{ inputs.deep }}
- name: finish
shell: bash
run: |
echo "release ${{ env.release_name }} created succesfully" >> $GITHUB_STEP_SUMMARY
echo "recursive asset ${{ env.asset_file }} uploaded with size of ${{ env.bytes_uploaded }} bytes" >> $GITHUB_STEP_SUMMARY
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
all: world

CXX?=g++
CXXFLAGS?=--std=c++17

INCLUDES:=

OBJS:= \
objs/main.o

Expand All @@ -22,5 +21,4 @@ example: $(OBJS)

.PHONY: clean
clean:
@rm -rf objs
@rm -f example
@rm -rf objs example
4 changes: 2 additions & 2 deletions Makefile.inc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
PROPERTY_DIR?=property
INCLUDES += -I./$(PROPERTY_DIR)/include
PROPERTY_DIR?=./property
INCLUDES += -I$(PROPERTY_DIR)/include
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[![License:MIT](https://img.shields.io/badge/License-MIT-blue?style=plastic)](LICENSE)
[![C++ CI build](../../actions/workflows/build.yml/badge.svg)](../../actions/workflows/build.yml)

### property_cpp

C++ properties, read only and/or dynamic getters

### <sub>Note:</sub>
a header only implementation

## <sub>Documentation</sub>

Use case sample is provided in [example code](main.cpp)
Expand Down

0 comments on commit e31ccc6

Please sign in to comment.