Skip to content

Commit

Permalink
Add releaser workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tolauwae committed Nov 26, 2024
1 parent 994392d commit 148d0cd
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish new release

on:
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true
default: 'warning'
type: string

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: "Update version"
run: |
sed -i "s/\(project(WARDuino VERSION \)[0-9]\+\.[0-9]\+\.[0-9]\+/\1$VERSION/" CMakeLists.txt
sed -i "s/\(version=\)[0-9]\+\.[0-9]\+\.[0-9]\+/\1$VERSION/" library.properties
env:
VERSION: ${{ inputs.version }}

- uses: EndBug/add-and-commit@v9
with:
add: '["CMakeLists.txt", "library.properties"]'
message: "🔖 Bump version to ${{ inputs.version }}"
default_author: github_actions

0 comments on commit 148d0cd

Please sign in to comment.