Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit 37d1145

Browse files
author
Jozef Volak
committed
Github action for package release
1 parent 7de5b83 commit 37d1145

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: Frinx Services Python Workers Bug
2+
description: Report a bug or unexpected behavior in frinx-services-python-workers
3+
labels: [bug, pending]
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: Thank you for contributing to frinx-services-python-workers!

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#### Checklist
2+
<!-- [Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.] -->
3+
- [ ] Title of the PR starts with chart name (e.g. `[inventory]`)
4+
- [ ] Update package version in principles of semantic versioning
5+
- [ ] Update CHANGELOG.md
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Release package
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
utils:
7+
type: choice
8+
description: Release package from utils
9+
options:
10+
- inventory/python
11+
- resource-manager/python
12+
- schellar/python
13+
- topology-discovery/python
14+
- uniconfig/python
15+
- misc/python/http
16+
- misc/python/kafka
17+
- misc/python/influxdb
18+
- misc/python/conductor-system-test
19+
20+
jobs:
21+
build:
22+
name: Validate api packages
23+
runs-on: ubuntu-latest
24+
timeout-minutes: 5
25+
defaults:
26+
run:
27+
working-directory: ${{ inputs.utils }}
28+
steps:
29+
- uses: actions/checkout@v2
30+
- uses: actions/setup-python@v4
31+
with:
32+
python-version: "3.10"
33+
- uses: abatilo/actions-poetry@v2
34+
with:
35+
poetry-version: "1.7.0"
36+
- name: Package naming
37+
run: |
38+
echo "PACKAGE_NAME=$(poetry version --no-interaction | cut -d ' ' -f 1)" >> "$GITHUB_ENV"
39+
echo "PACKAGE_VERSION=$(poetry version --no-interaction --short)" >> "$GITHUB_ENV"
40+
echo "RELEASE_TAG=$(poetry version --no-interaction | sed 's| |_v|g')" >> "$GITHUB_ENV"
41+
# - name: Poetry publish
42+
# run: poetry publish -u "__token__" -p "${{ secrets.PYPI_TOKEN }}" --build
43+
- name: Create Release
44+
id: create_release
45+
uses: actions/create-release@latest
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
with:
49+
tag_name: ${{ env.RELEASE_TAG }}
50+
release_name: ${{ env.RELEASE_TAG }}
51+
body: |
52+
- Release of ${{ env.PACKAGE_NAME }} version ${{ env.PACKAGE_VERSION }}
53+
draft: false
54+
prerelease: false

0 commit comments

Comments
 (0)