Skip to content

Commit a1d975d

Browse files
authored
Merge pull request #21 from AllenInstitute/feature/DT-6858-make-package-public
Update release workflow to include VERSION_TAG and adjust checkout reference, also update README
2 parents e5f7d85 + 49a528d commit a1d975d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/release.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ jobs:
3434
MAJOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MAJOR_VERSION }}
3535
MINOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MINOR_VERSION }}
3636
PATCH_VERSION: ${{ steps.get-version-and-commit-sha.outputs.PATCH_VERSION }}
37+
VERSION_TAG: ${{ steps.get-version-and-commit-sha.outputs.VERSION_TAG }}
3738
COMMIT_SHA: ${{ steps.get-version-and-commit-sha.outputs.COMMIT_SHA }}
3839
steps:
3940
- name: Checkout
4041
uses: actions/checkout@v4
42+
with:
43+
ssh-key: ${{ secrets.AIBSGITHUB_PRIVATE_KEY }}
4144
- name: Set up Python ${{ github.event.inputs.python-version }}
4245
uses: actions/setup-python@v4
4346
with:
@@ -80,7 +83,8 @@ jobs:
8083
echo "PATCH_VERSION=$patch_version" >> $GITHUB_OUTPUT
8184
short_version="$major_version.$minor_version"
8285
echo "SHORT_VERSION=$short_version" >> $GITHUB_OUTPUT
83-
commit_sha=$(git rev-parse $latest_tag)
86+
echo "VERSION_TAG=$latest_tag" >> $GITHUB_OUTPUT
87+
commit_sha=$(git rev-list -n 1 $latest_tag)
8488
echo "COMMIT_SHA=$commit_sha" >> $GITHUB_OUTPUT
8589
- name: Show version
8690
run: |
@@ -89,6 +93,7 @@ jobs:
8993
echo MAJOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MAJOR_VERSION }}
9094
echo MINOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MINOR_VERSION }}
9195
echo PATCH_VERSION: ${{ steps.get-version-and-commit-sha.outputs.PATCH_VERSION }}
96+
echo VERSION_TAG: ${{ steps.get-version-and-commit-sha.outputs.VERSION_TAG }}
9297
echo COMMIT_SHA: ${{ steps.get-version-and-commit-sha.outputs.COMMIT_SHA }}
9398
9499
build:
@@ -99,7 +104,8 @@ jobs:
99104
steps:
100105
- uses: actions/checkout@v4
101106
with:
102-
ref: ${{ needs.bump.outputs.COMMIT_SHA }}
107+
ref: ${{ needs.bump.outputs.VERSION_TAG }}
108+
ssh-key: ${{ secrets.AIBSGITHUB_PRIVATE_KEY }}
103109
- name: Set up Python ${{ github.event.inputs.python-version }}
104110
uses: actions/setup-python@v4
105111
with:

pyproject.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ build-backend = "setuptools.build_meta"
1111
# -----------------------------------------------------------------------------
1212
[project]
1313
name = "aibs-informatics-aws-utils"
14+
authors = [{ name = "AIBS Informatics Group", email = "marmot@alleninstitute.onmicrosoft.com"}]
15+
maintainers = [{ name = "AIBS Informatics Group", email = "marmot@alleninstitute.onmicrosoft.com"}]
1416
description = "Library of AWS utility code for informatics projects at the Allen Institute for Brain Science"
15-
readme = "README.md"
17+
readme = { file = "README.md", content-type = "text/markdown" }
1618
dynamic = [ "version"]
1719
requires-python = ">=3.9"
1820

0 commit comments

Comments
 (0)