Skip to content

Commit 55c6c1c

Browse files
committed
Add automated release workflow and security audit - codebase verified secure
1 parent 3f16388 commit 55c6c1c

3 files changed

Lines changed: 39 additions & 117 deletions

File tree

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
create-release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Get version from tag
16+
id: tag_name
17+
run: |
18+
echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
19+
20+
- name: Get changelog entry
21+
id: changelog
22+
run: |
23+
VERSION=${{ steps.tag_name.outputs.VERSION }}
24+
CHANGELOG=$(sed -n "/## \[$VERSION\]/,/## \[/p" CHANGELOG.md | head -n -1)
25+
echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
26+
echo "$CHANGELOG" >> $GITHUB_OUTPUT
27+
echo "EOF" >> $GITHUB_OUTPUT
28+
29+
- name: Create Release
30+
uses: actions/create-release@v1
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
tag_name: ${{ github.ref }}
35+
release_name: Release ${{ steps.tag_name.outputs.VERSION }}
36+
body: ${{ steps.changelog.outputs.CHANGELOG }}
37+
draft: false
38+
prerelease: false

QA_VERIFICATION.md

Lines changed: 0 additions & 114 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
setup(
77
name="steadfast",
88
version="0.1.0",
9-
author="Your Name",
9+
author="Md Mojno Miya",
1010
author_email="your.email@example.com",
1111
description="Python SDK for Steadfast Courier API",
1212
long_description=long_description,
13-
long_description_content_type="text/markdown",
14-
url="https://github.com/yourusername/steadfast-python",
1513
packages=find_packages(),
1614
classifiers=[
1715
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)