Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/*
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
Loading