41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: Build comlib.deb package
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- build-test
|
|
|
|
|
|
jobs:
|
|
build-complib-deb:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Bump version number
|
|
uses: paulhatch/semantic-version@v5.0.0-alpha2
|
|
id: next_semantic_version
|
|
with:
|
|
branch: build-test
|
|
tag_prefix: "v"
|
|
major_pattern: "(MAJOR)"
|
|
major_regexp_flags: ""
|
|
minor_pattern: "(MINOR)"
|
|
minor_regexp_flags: ""
|
|
format: "${major}.${minor}.${patch}-prerelease${increment}"
|
|
change_path: "src/my-service"
|
|
namespace: complib
|
|
bump_each_commit: false
|
|
search_commit_body: false
|
|
user_format_type: "csv"
|
|
- name: test
|
|
run: |
|
|
echo ${{join(steps.next_semantic_version.outputs.*, ' - ')}}
|
|
echo "Next version: ${{steps.next_semantic_version.outputs.version}}"
|
|
echo "Next version tag: ${{steps.next_semantic_version.outputs.version_tag}}"
|