diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..ac43458 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,12 @@ +name: Changelog +on: + pull_request + +jobs: + Check-Changelog: + name: Check Changelog Action + runs-on: ubuntu-20.04 + steps: + - uses: tarides/changelog-check-action@v2 + with: + changelog: CHANGELOG.md diff --git a/.github/workflows/ecr.yml b/.github/workflows/ecr.yml index eb33646..1420c0e 100644 --- a/.github/workflows/ecr.yml +++ b/.github/workflows/ecr.yml @@ -1,8 +1,9 @@ name: Deploy to ECR on: - release: - types: [published] + push: + tags: + - '*' permissions: id-token: write # This is required for requesting the JWT @@ -18,7 +19,7 @@ jobs: - name: Check out code uses: actions/checkout@v3 - - name: Build FastAPI Image + - name: Build Image run: | docker build -t temp:latest -f Dockerfile . @@ -35,11 +36,11 @@ jobs: id: login-ecr-management uses: aws-actions/amazon-ecr-login@v2 - - name: Tag and Push FastAPI Image to Amazon ECR + - name: Tag and Push Image to Amazon ECR env: ECR_REGISTRY: ${{ steps.login-ecr-management.outputs.registry }} ECR_REPOSITORY: ml-repository - IMAGE_TAG: neuroagent-${{ github.event.release.tag_name }} + IMAGE_TAG: neuroagent-${{ github.ref_name }} run: | docker tag temp:latest $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml deleted file mode 100644 index a1a4644..0000000 --- a/.github/workflows/release-please.yml +++ /dev/null @@ -1,18 +0,0 @@ -on: - push: - branches: - - main - -permissions: - contents: write - pull-requests: write - -name: release-please - -jobs: - release-please: - runs-on: ubuntu-latest - steps: - - uses: googleapis/release-please-action@v4 - with: - release-type: simple diff --git a/CHANGELOG.md b/CHANGELOG.md index e70970a..d8dd2a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +## [0.3.3] - 30.10.2024 + +### Changed +- Removed release please bot and add automatic on tag pushes to ecr. + ## [0.3.2](https://github.com/BlueBrain/neuroagent/compare/v0.3.1...v0.3.2) (2024-10-29) @@ -28,7 +35,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Added release please to automate changelogs and releases. ([5b9d30b](https://github.com/BlueBrain/neuroagent/commit/5b9d30b1d304a4a16761939625db31ed581bc57b)) * Added stream ([#33](https://github.com/BlueBrain/neuroagent/issues/33)) ([3df8463](https://github.com/BlueBrain/neuroagent/commit/3df84637649fce5937688f288d4d03f9c4eab0b6)) -## [Unreleased] ### Added - Swarm copy POC. diff --git a/release-please-config.json b/release-please-config.json deleted file mode 100644 index 7572220..0000000 --- a/release-please-config.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "includeUnreleased": true, - "release-type": "python", - "bump-minor-pre-major": true, - "include-v-in-tag": true, - "version-file": "src/neuroagent/__init__.py" -} diff --git a/src/neuroagent/__init__.py b/src/neuroagent/__init__.py index 1652b40..ded7114 100644 --- a/src/neuroagent/__init__.py +++ b/src/neuroagent/__init__.py @@ -1,3 +1,3 @@ """Neuroagent package.""" -__version__ = "0.3.2" +__version__ = "0.3.3"