Skip to content

Commit

Permalink
CI: Fix PlatformIO publish workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>
  • Loading branch information
sidcha committed Nov 10, 2024
1 parent b7f3358 commit db58b97
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
run: |
pio package publish
pio package publish --type library --no-interactive --owner sidcha
9 changes: 9 additions & 0 deletions scripts/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ function platformio_inc_version() {
$pat+=1 if $patch;
$_="#define PROJECT_VERSION $1 \"$maj.$min.$pat\"\n"
}' -- -$inc platformio/osdp_config.h

perl -pi -se '
if (/^ "version": "(\d+)\.(\d+)\.(\d+)",$/) {
$maj=$1; $min=$2; $pat=$3;
if ($major) { $maj+=1; $min=0; $pat=0; }
if ($minor) { $min+=1; $pat=0; }
$pat+=1 if $patch;
$_=" \"version\": \"$maj.$min.$pat\",\n"
}' -- -$inc library.json
}

function generate_change_log() {
Expand Down

0 comments on commit db58b97

Please sign in to comment.