Skip to content

Commit c7dba55

Browse files
chore: legacy release workflow
1 parent 2d224ab commit c7dba55

File tree

2 files changed

+17
-36
lines changed

2 files changed

+17
-36
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
1-
name: Upload Python Package
1+
name: (Legacy) Upload Python Package
22

33
on:
44
push:
5-
tags:
6-
- v*
7-
workflow_dispatch:
8-
permissions:
9-
contents: read
105

116
jobs:
127
build:
138
strategy:
149
matrix:
15-
os: [ ubuntu-latest-8, macos-latest]
10+
os: [ ubuntu-latest-8, macos-latest ]
1611
python: [3.12, 3.13 ]
1712
runs-on: ${{ matrix.os }}
1813
steps:
1914
- uses: actions/checkout@v4
2015
with:
2116
fetch-depth: 0
22-
ref: ${{ github.event.pull_request.head.ref || github.ref }}
17+
2318
- name: Setup backend
2419
uses: ./.github/actions/setup-backend
2520
with:
2621
python-version: ${{ matrix.python }}
22+
2723
- name: Get history and tags for SCM versioning to work
2824
run: |
2925
git branch
@@ -34,32 +30,16 @@ jobs:
3430
uv build --wheel
3531
env:
3632
HATCH_BUILD_HOOKS_ENABLE: true
37-
- name: Upload distributions
38-
uses: actions/upload-artifact@v4
39-
with:
40-
name: wheels-${{ matrix.os }}-${{ matrix.python }}
41-
path: dist/
4233

43-
release:
44-
needs: build
45-
runs-on: ubuntu-latest-8
46-
permissions:
47-
contents: write
48-
environment: release
49-
steps:
50-
- uses: actions/checkout@v4
51-
- name: Setup backend
52-
uses: ./.github/actions/setup-backend
53-
- name: Download All Artifacts
54-
uses: actions/download-artifact@v4
55-
with:
56-
path: dist
57-
merge-multiple: true
58-
pattern: wheels-*
59-
- name: Make github release
60-
uses: softprops/action-gh-release@v2
61-
if: startsWith(github.ref, 'refs/tags/')
34+
- name: Configure AWS Credentials
35+
uses: aws-actions/configure-aws-credentials@v4
6236
with:
63-
files: dist/*
64-
fail_on_unmatched_files: true
65-
generate_release_notes: true
37+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
38+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
39+
aws-region: us-west-1
40+
41+
- name: Release to AWS codeartifact
42+
run: |
43+
export UV_PUBLISH_PASSWORD="$(aws codeartifact get-authorization-token --domain codegen --domain-owner 922078275900 --region us-east-1 --query authorizationToken --output text)"
44+
export UV_PUBLISH_USERNAME=aws
45+
uv publish --publish-url https://codegen-922078275900.d.codeartifact.us-east-1.amazonaws.com/pypi/codegen/

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[project]
22
name = "codegen-sdk"
3-
dynamic = ["version", "urls"]
3+
dynamic = [ "urls"]
4+
version = "7.1.0"
45
description = "Add your description here"
56
readme = "README.md"
67
# renovate: datasource=python-version depName=python

0 commit comments

Comments
 (0)