From b0b8a2b8577145b67a22a37af463ca90f5e6b5ea Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Tue, 5 May 2026 13:26:23 +0000 Subject: [PATCH 1/4] Add release workflow --- .github/workflows/release.yml | 56 +++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..bbbc6f4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,56 @@ +--- +name: Release +# yamllint disable-line rule:truthy +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-slim + timeout-minutes: 5 + environment: release + permissions: + contents: write + id-token: write + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 + - name: Setup UV + uses: astral-sh/setup-uv@v7 + - name: Detect version change + id: version-check + run: | + awk '{ + if ($1 == "version") { + gsub("\"", "", $3); + print $3; + } + }' pyproject.toml > .package-version + + VERSION="$(cat .package-version)" + if git rev-parse "v${VERSION}" > /dev/null 2>&1 ; then + NEW_VERSION=false + else + NEW_VERSION=true + fi + + { + echo "VERSION=${VERSION}" + echo "NEW_VERSION=${NEW_VERSION}" + } >> "$GITHUB_OUTPUT" + - name: Build and publish + if: steps.version-check.outputs.NEW_VERSION == 'true' + run: | + uv build + uv publish + - name: Create GitHub release + if: steps.version-check.outputs.NEW_VERSION == 'true' + uses: softprops/action-gh-release@v3 + with: + tag_name: v${{ steps.version-check.outputs.VERSION }} + generate_release_notes: true + files: dist/* From 40d0cb6392ee6f3eb3fbec50cc94559152cd3975 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Tue, 5 May 2026 13:27:42 +0000 Subject: [PATCH 2/4] Fix yamllint errors --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbbc6f4..8db5a10 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,14 +30,14 @@ jobs: print $3; } }' pyproject.toml > .package-version - + VERSION="$(cat .package-version)" if git rev-parse "v${VERSION}" > /dev/null 2>&1 ; then NEW_VERSION=false else NEW_VERSION=true fi - + { echo "VERSION=${VERSION}" echo "NEW_VERSION=${NEW_VERSION}" From 0acc63bec06397a1df9894d801d69aac4b9498fd Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Wed, 6 May 2026 06:06:45 +0000 Subject: [PATCH 3/4] Increase test timeouts --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 654f59f..ece6516 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: os: ["ubuntu-latest", "windows-latest", "macos-latest"] python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] runs-on: ${{ matrix.os }} - timeout-minutes: 5 + timeout-minutes: 15 needs: - lint - typecheck From 28a708c08e32d97b3cf097355760da9d3ab311c6 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Thu, 7 May 2026 06:32:04 +0000 Subject: [PATCH 4/4] Better formatting for pyproject.toml --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4b794a9..d9bd075 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,8 @@ name = "arcticsecurity" version = "0.1.0" authors = [ - {name = "Arctic Security", email = "pypi@arcticsecurity.com"}, ] + {name = "Arctic Security", email = "pypi@arcticsecurity.com"}, +] description = "Library to access Arctic Security APIs" license = "MIT" license-files = ["LICENSE"]