Skip to content

Commit

Permalink
Merge pull request #21 from AllenInstitute/feature/DT-6858-make-packa…
Browse files Browse the repository at this point in the history
…ge-public

Update release workflow to include VERSION_TAG and adjust checkout reference, also update README
  • Loading branch information
rpmcginty authored Dec 6, 2024
2 parents e5f7d85 + 49a528d commit a1d975d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ jobs:
MAJOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MAJOR_VERSION }}
MINOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MINOR_VERSION }}
PATCH_VERSION: ${{ steps.get-version-and-commit-sha.outputs.PATCH_VERSION }}
VERSION_TAG: ${{ steps.get-version-and-commit-sha.outputs.VERSION_TAG }}
COMMIT_SHA: ${{ steps.get-version-and-commit-sha.outputs.COMMIT_SHA }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.AIBSGITHUB_PRIVATE_KEY }}
- name: Set up Python ${{ github.event.inputs.python-version }}
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -80,7 +83,8 @@ jobs:
echo "PATCH_VERSION=$patch_version" >> $GITHUB_OUTPUT
short_version="$major_version.$minor_version"
echo "SHORT_VERSION=$short_version" >> $GITHUB_OUTPUT
commit_sha=$(git rev-parse $latest_tag)
echo "VERSION_TAG=$latest_tag" >> $GITHUB_OUTPUT
commit_sha=$(git rev-list -n 1 $latest_tag)
echo "COMMIT_SHA=$commit_sha" >> $GITHUB_OUTPUT
- name: Show version
run: |
Expand All @@ -89,6 +93,7 @@ jobs:
echo MAJOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MAJOR_VERSION }}
echo MINOR_VERSION: ${{ steps.get-version-and-commit-sha.outputs.MINOR_VERSION }}
echo PATCH_VERSION: ${{ steps.get-version-and-commit-sha.outputs.PATCH_VERSION }}
echo VERSION_TAG: ${{ steps.get-version-and-commit-sha.outputs.VERSION_TAG }}
echo COMMIT_SHA: ${{ steps.get-version-and-commit-sha.outputs.COMMIT_SHA }}
build:
Expand All @@ -99,7 +104,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.bump.outputs.COMMIT_SHA }}
ref: ${{ needs.bump.outputs.VERSION_TAG }}
ssh-key: ${{ secrets.AIBSGITHUB_PRIVATE_KEY }}
- name: Set up Python ${{ github.event.inputs.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ build-backend = "setuptools.build_meta"
# -----------------------------------------------------------------------------
[project]
name = "aibs-informatics-aws-utils"
authors = [{ name = "AIBS Informatics Group", email = "[email protected]"}]
maintainers = [{ name = "AIBS Informatics Group", email = "[email protected]"}]
description = "Library of AWS utility code for informatics projects at the Allen Institute for Brain Science"
readme = "README.md"
readme = { file = "README.md", content-type = "text/markdown" }
dynamic = [ "version"]
requires-python = ">=3.9"

Expand Down

0 comments on commit a1d975d

Please sign in to comment.