Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release workflow to include VERSION_TAG and adjust checkout reference, also update README #21

Merged
merged 2 commits into from
Dec 6, 2024
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
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
Loading