From 3a2c0b70ee01cd0bbeb051dae239c484c167aba6 Mon Sep 17 00:00:00 2001 From: skhomuti Date: Thu, 22 Jun 2023 20:26:14 +0500 Subject: [PATCH] ci: add new release workflows using GitHub Releases --- .github/workflows/ci-prod.yml | 29 +-- .../create-tag-and-trigger-deploy.yml | 46 ----- .github/workflows/prepare-release-draft.yml | 14 ++ .github/workflows/prepare-release.yml | 46 ----- CHANGELOG.md | 192 ++++++++---------- README.md | 16 +- 6 files changed, 106 insertions(+), 237 deletions(-) delete mode 100644 .github/workflows/create-tag-and-trigger-deploy.yml create mode 100644 .github/workflows/prepare-release-draft.yml delete mode 100644 .github/workflows/prepare-release.yml diff --git a/.github/workflows/ci-prod.yml b/.github/workflows/ci-prod.yml index 60891862..c45f6738 100644 --- a/.github/workflows/ci-prod.yml +++ b/.github/workflows/ci-prod.yml @@ -1,16 +1,10 @@ name: CI Build prod image on: - workflow_call: - inputs: - tag: - description: "tag to deploy from" - default: "" - required: false - type: string + release: + types: [released] -permissions: - contents: read +permissions: {} jobs: # test: @@ -21,21 +15,6 @@ jobs: # needs: test name: Build and deploy steps: - - name: Checkout - uses: actions/checkout@v3 - with: - persist-credentials: false - - - name: Tag name - id: tag_name - run: | - if [ '${{ inputs.tag }}' = '' ]; then - echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT - else - echo "TAG=$TAG" >> $GITHUB_OUTPUT - fi - env: - TAG: ${{ inputs.tag }} - name: Build prod image uses: lidofinance/dispatch-workflow@v1 @@ -43,5 +22,5 @@ jobs: APP_ID: ${{ secrets.APP_ID }} APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} TARGET_REPO: "lidofinance/infra-mainnet" - TAG: "${{ steps.tag_name.outputs.TAG }}" + TAG: "${{ github.event.release.tag_name }}" TARGET_WORKFLOW: "build_both_critical_and_mainnet_lido_keys_api.yaml" diff --git a/.github/workflows/create-tag-and-trigger-deploy.yml b/.github/workflows/create-tag-and-trigger-deploy.yml deleted file mode 100644 index eac3077e..00000000 --- a/.github/workflows/create-tag-and-trigger-deploy.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Create tag and trigger deploy -on: - push: - branches: - - main - -permissions: - contents: write - -jobs: - bump: - name: Create tag and release - runs-on: ubuntu-latest - if: "contains(github.event.head_commit.message, 'chore(release)')" - outputs: - tag: ${{ steps.tag.outputs.tag }} - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - persist-credentials: false - - name: Get tag value - id: tag - run: | - TAG="$(grep -oP '^chore\(release\).*\K(\d+\.\d+\.\d+)' <<< "$MESSAGE")" - echo "$TAG" - echo "tag=$TAG" >> $GITHUB_OUTPUT - env: - MESSAGE: ${{ github.event.head_commit.message }} - - name: Create and push tag - run: | - git tag ${{ steps.tag.outputs.tag }} - git push https://x-access-token:${{ github.token }}@github.com/$GITHUB_REPOSITORY --tags - - name: Create release - uses: lidofinance/action-gh-release@v1 - with: - tag_name: ${{ steps.tag.outputs.tag }} - - deploy-trigger: - needs: bump - name: Trigger build and PR creation in the infra-mainnet - if: "contains(github.event.head_commit.message, 'chore(release)')" - uses: ./.github/workflows/ci-prod.yml - secrets: inherit - with: - tag: ${{ needs.bump.outputs.tag }} diff --git a/.github/workflows/prepare-release-draft.yml b/.github/workflows/prepare-release-draft.yml new file mode 100644 index 00000000..8ea14dd0 --- /dev/null +++ b/.github/workflows/prepare-release-draft.yml @@ -0,0 +1,14 @@ +name: Prepare release draft +on: + push: + branches: + - main + +permissions: + contents: write + +jobs: + prepare-release-draft: + uses: lidofinance/actions/.github/workflows/prepare-release-draft.yml@main + with: + target: main diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml deleted file mode 100644 index 8a474ba4..00000000 --- a/.github/workflows/prepare-release.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Prepare release - -on: - workflow_dispatch: - -permissions: - contents: write - pull-requests: write - -jobs: - prepare-release: - name: Prepare release and create pre-release PR - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - persist-credentials: false - - - name: Bump version and update CHANGELOG.MD - id: changelog - uses: lidofinance/conventional-changelog-action@v3 - with: - git-message: "chore(release): {version}" - tag-prefix: "" - output-file: "CHANGELOG.md" - version-file: package.json - version-path: version - release-count: 10 # save all releases in the CHANGELOG.md - git-push: false - skip-on-empty: false - skip-ci: false - create-summary: true - - - name: Fail on missing args - if: ${{ !steps.changelog.outputs.version }} - run: > - echo "::error::No version output found for the prev step! Try restarting action" && exit 1 - - - name: Create Pull Request - uses: lidofinance/create-pull-request@v4 - if: ${{ steps.changelog.outputs.version }} - with: - branch: pre-release-${{ steps.changelog.outputs.version }} - title: "chore(release): ${{ steps.changelog.outputs.version }}" - body: "This PR is generated automatically.\nMerge it for the automatic tag creation.\nIf you don't need this PR than close it and **delete source branch**! " diff --git a/CHANGELOG.md b/CHANGELOG.md index fb8aa03d..62eca0c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,169 +1,139 @@ -## [0.8.2](https://github.com/lidofinance/lido-keys-api/compare/0.8.1...0.8.2) (2023-05-18) - +# This file is no longer used by semantic-release -### Bug Fixes +For the latest release notes, please see the [GitHub releases page](https://github.com/lidofinance/lido-keys-api/releases). -* add for expr in outdated keys alert ([b6c0866](https://github.com/lidofinance/lido-keys-api/commit/b6c086670ec21b66b60497d319e85434f2a231d7)) -* add reference on lido.fi in readme ([51c9172](https://github.com/lidofinance/lido-keys-api/commit/51c91727ec2269944de0f6e722a100c47c9a0679)) -* keys аlert outdated warn -> critical; validators alert outdated disable possibility. ([5c037c6](https://github.com/lidofinance/lido-keys-api/commit/5c037c64f193659c88e8058abd9c56136923ef31)) -* README ([6418e73](https://github.com/lidofinance/lido-keys-api/commit/6418e7337afd77c0e616c23d5b0bc441ad1d9986)) -* use shorthand for test ([44edaba](https://github.com/lidofinance/lido-keys-api/commit/44edabad4d79df20fffea12d24e10eb5e86cd0af)) +## [0.8.2](https://github.com/lidofinance/lido-keys-api/compare/0.8.1...0.8.2) (2023-05-18) +### Bug Fixes +- add for expr in outdated keys alert ([b6c0866](https://github.com/lidofinance/lido-keys-api/commit/b6c086670ec21b66b60497d319e85434f2a231d7)) +- add reference on lido.fi in readme ([51c9172](https://github.com/lidofinance/lido-keys-api/commit/51c91727ec2269944de0f6e722a100c47c9a0679)) +- keys аlert outdated warn -> critical; validators alert outdated disable possibility. ([5c037c6](https://github.com/lidofinance/lido-keys-api/commit/5c037c64f193659c88e8058abd9c56136923ef31)) +- README ([6418e73](https://github.com/lidofinance/lido-keys-api/commit/6418e7337afd77c0e616c23d5b0bc441ad1d9986)) +- use shorthand for test ([44edaba](https://github.com/lidofinance/lido-keys-api/commit/44edabad4d79df20fffea12d24e10eb5e86cd0af)) ## [0.8.1](https://github.com/lidofinance/lido-keys-api/compare/0.8.0...0.8.1) (2023-05-03) - ### Bug Fixes -* image ([68ff8d9](https://github.com/lidofinance/lido-keys-api/commit/68ff8d9c9f36de4400dfd6951f42db92f26c350b)) - - +- image ([68ff8d9](https://github.com/lidofinance/lido-keys-api/commit/68ff8d9c9f36de4400dfd6951f42db92f26c350b)) # [0.8.0](https://github.com/lidofinance/lido-keys-api/compare/0.7.3...0.8.0) (2023-05-03) - ### Bug Fixes -* update execution lib ([79651d7](https://github.com/lidofinance/lido-keys-api/commit/79651d76236379ce04dbb056e42dfe0174db9021)) - +- update execution lib ([79651d7](https://github.com/lidofinance/lido-keys-api/commit/79651d76236379ce04dbb056e42dfe0174db9021)) ### Features -* add graceful shutdown and uncaught exception handler ([7bb4baa](https://github.com/lidofinance/lido-keys-api/commit/7bb4baae49fb27ea473adc2ab27a9ff94f1069e8)) - - +- add graceful shutdown and uncaught exception handler ([7bb4baa](https://github.com/lidofinance/lido-keys-api/commit/7bb4baae49fb27ea473adc2ab27a9ff94f1069e8)) ## [0.7.3](https://github.com/lidofinance/lido-keys-api/compare/0.7.2...0.7.3) (2023-04-27) - ### Bug Fixes -* cron -> interval; check of last updates ([593d97e](https://github.com/lidofinance/lido-keys-api/commit/593d97edf0a47d3c2319f185312d712c916c42bc)) -* timeout, names ([e9a348b](https://github.com/lidofinance/lido-keys-api/commit/e9a348b04cccd672695c2f701d303419d33a1754)) -* timer name ([873d366](https://github.com/lidofinance/lido-keys-api/commit/873d36649bc43da3885beb96c515281a5670bc24)) -* unused commit ([d2368bc](https://github.com/lidofinance/lido-keys-api/commit/d2368bc637a7565b945e3b96453f6b5e2f23adb1)) - - +- cron -> interval; check of last updates ([593d97e](https://github.com/lidofinance/lido-keys-api/commit/593d97edf0a47d3c2319f185312d712c916c42bc)) +- timeout, names ([e9a348b](https://github.com/lidofinance/lido-keys-api/commit/e9a348b04cccd672695c2f701d303419d33a1754)) +- timer name ([873d366](https://github.com/lidofinance/lido-keys-api/commit/873d36649bc43da3885beb96c515281a5670bc24)) +- unused commit ([d2368bc](https://github.com/lidofinance/lido-keys-api/commit/d2368bc637a7565b945e3b96453f6b5e2f23adb1)) ## [0.7.2](https://github.com/lidofinance/lido-keys-api/compare/0.7.1...0.7.2) (2023-04-21) - - ## [0.7.1](https://github.com/lidofinance/lido-keys-api/compare/0.7.0...0.7.1) (2023-04-21) - ### Bug Fixes -* deps ([5c50f05](https://github.com/lidofinance/lido-keys-api/commit/5c50f059ab3abcf494001f0622c24ae3dc791c17)) -* repeatable_read ([1a4348c](https://github.com/lidofinance/lido-keys-api/commit/1a4348c74fe486b8b5d42407d7ef0f7ec8266589)) -* validators lib with repeatable read transactions ([d3756b3](https://github.com/lidofinance/lido-keys-api/commit/d3756b31fe673ea7776524a83c36d7516c375d78)) - - +- deps ([5c50f05](https://github.com/lidofinance/lido-keys-api/commit/5c50f059ab3abcf494001f0622c24ae3dc791c17)) +- repeatable_read ([1a4348c](https://github.com/lidofinance/lido-keys-api/commit/1a4348c74fe486b8b5d42407d7ef0f7ec8266589)) +- validators lib with repeatable read transactions ([d3756b3](https://github.com/lidofinance/lido-keys-api/commit/d3756b31fe673ea7776524a83c36d7516c375d78)) # [0.7.0](https://github.com/lidofinance/lido-keys-api/compare/0.6.0...0.7.0) (2023-04-17) - ### Bug Fixes -* 425 resp ([dda3fa2](https://github.com/lidofinance/lido-keys-api/commit/dda3fa27df035f07e15227ade865fadfaefe21d7)) -* add 500 description for validators ([a8f6405](https://github.com/lidofinance/lido-keys-api/commit/a8f6405ff71a2cbbe1b7bb730649b17739f660a1)) -* add internal error response to swagger for /validators ([419101a](https://github.com/lidofinance/lido-keys-api/commit/419101a2f88a7e20738433607aff7e18cd297fb7)) -* add support of staking router ([63045ae](https://github.com/lidofinance/lido-keys-api/commit/63045ae97cea6f4704e0b7a04484a511c699a1b6)) -* add typechain to test flow ([0f7be5a](https://github.com/lidofinance/lido-keys-api/commit/0f7be5ace3e77403264bee9ff1327365f20d34e8)) -* comments ([5b4e924](https://github.com/lidofinance/lido-keys-api/commit/5b4e9243c6f4ac1111b510305faf0a160897b078)) -* disableForeignKeys ([4fb282c](https://github.com/lidofinance/lido-keys-api/commit/4fb282cd07feb0a735e0621cb75ea963b789a849)) -* disableForeignKeys by env ([9f89923](https://github.com/lidofinance/lido-keys-api/commit/9f89923fc921cabff3f174cb048957b53f298051)) -* dockerfile ([ee2f0b4](https://github.com/lidofinance/lido-keys-api/commit/ee2f0b4b248282276e312a771de954ddc2a87d83)) -* dockerfile ([dc8541b](https://github.com/lidofinance/lido-keys-api/commit/dc8541b2689a566338d2159ffca849d8586fbd57)) -* error with validation pipe ([37e2a31](https://github.com/lidofinance/lido-keys-api/commit/37e2a3158a54c267d6d96c42f9364a6225f1bbdb)) -* file env validation ([a3fd0c1](https://github.com/lidofinance/lido-keys-api/commit/a3fd0c1df4810f61d94ddb149715c5dbbc066280)) -* fix description in tooEarlyResp ([4c8fb94](https://github.com/lidofinance/lido-keys-api/commit/4c8fb94f8d70edb9f9eae95ce272ffcd3ade0c43)) -* fix types ([0f4c1f9](https://github.com/lidofinance/lido-keys-api/commit/0f4c1f90ac78116a4d1470ee7d2dc1f86eef6ed5)) -* log ([80b42c0](https://github.com/lidofinance/lido-keys-api/commit/80b42c09fd9502c4a55810dc2083bb8445c990c3)) -* log ([faf6c7f](https://github.com/lidofinance/lido-keys-api/commit/faf6c7fab69c703399d52970c4cb54622b12ddb9)) -* logger names ([b0a3283](https://github.com/lidofinance/lido-keys-api/commit/b0a3283828fbb5b1a9cc8bf053015df9f4aa99be)) -* message ([9d800c9](https://github.com/lidofinance/lido-keys-api/commit/9d800c9eac0270c42a00cbea09fbb111c4e5026c)) -* port publishing in demo compose ([5b59659](https://github.com/lidofinance/lido-keys-api/commit/5b59659a0621aa9d8c1f7ba36617aa6897784d18)) -* property name in validation ([90e6a02](https://github.com/lidofinance/lido-keys-api/commit/90e6a02eb7f61f1464db4641e39685490ce07b17)) -* readme ([08840dd](https://github.com/lidofinance/lido-keys-api/commit/08840dd4259d39b1c8720a4fe1642fe74f324430)) -* readme ([dcca44d](https://github.com/lidofinance/lido-keys-api/commit/dcca44d1847a933c9f03633c9927279c4c7c66fb)) -* registry and constants dependencies update ([ae33bbc](https://github.com/lidofinance/lido-keys-api/commit/ae33bbc28bbf18f087d6a400d10a93e51c3d93d2)) -* remove trailing slash in endpoint ([b2995a8](https://github.com/lidofinance/lido-keys-api/commit/b2995a85d18cd91cad213b1cb69f6b8d2ddd341c)) -* remove wrong log ([cca2b2c](https://github.com/lidofinance/lido-keys-api/commit/cca2b2cfd2c01f10dcb31ad6ecb38b69a3fc3268)) -* small fixes ([55447a2](https://github.com/lidofinance/lido-keys-api/commit/55447a20db1fec5aa95e2ff9cfaa4bed02985e0e)) -* SR abi update ([1a3b493](https://github.com/lidofinance/lido-keys-api/commit/1a3b493f7ba7e2eca92073921d280152fac87053)) -* trailing slash from el cl providers ([5d02c3e](https://github.com/lidofinance/lido-keys-api/commit/5d02c3ed9c875028c06829bcfa2e5800a73b2378)) -* unused ([0a7a2f6](https://github.com/lidofinance/lido-keys-api/commit/0a7a2f659751a383a647e2a61403a19e119a1a1e)) -* update contract. ([0cf38a6](https://github.com/lidofinance/lido-keys-api/commit/0cf38a6ed483b6c0f1a58d877691b898463e8bf5)) -* validation ([687a920](https://github.com/lidofinance/lido-keys-api/commit/687a920ad60218935a2388813a829207e1d2e811)) -* validatorIndex -> validator_index as in eth doc; validator_index and epoch to string. ([483fb3f](https://github.com/lidofinance/lido-keys-api/commit/483fb3f56bae929963b51d743cd53835d69f3744)) -* validators endpoints name. ([29cf425](https://github.com/lidofinance/lido-keys-api/commit/29cf4259def573e4652f276a8ac0e8b1ffaab14a)) - +- 425 resp ([dda3fa2](https://github.com/lidofinance/lido-keys-api/commit/dda3fa27df035f07e15227ade865fadfaefe21d7)) +- add 500 description for validators ([a8f6405](https://github.com/lidofinance/lido-keys-api/commit/a8f6405ff71a2cbbe1b7bb730649b17739f660a1)) +- add internal error response to swagger for /validators ([419101a](https://github.com/lidofinance/lido-keys-api/commit/419101a2f88a7e20738433607aff7e18cd297fb7)) +- add support of staking router ([63045ae](https://github.com/lidofinance/lido-keys-api/commit/63045ae97cea6f4704e0b7a04484a511c699a1b6)) +- add typechain to test flow ([0f7be5a](https://github.com/lidofinance/lido-keys-api/commit/0f7be5ace3e77403264bee9ff1327365f20d34e8)) +- comments ([5b4e924](https://github.com/lidofinance/lido-keys-api/commit/5b4e9243c6f4ac1111b510305faf0a160897b078)) +- disableForeignKeys ([4fb282c](https://github.com/lidofinance/lido-keys-api/commit/4fb282cd07feb0a735e0621cb75ea963b789a849)) +- disableForeignKeys by env ([9f89923](https://github.com/lidofinance/lido-keys-api/commit/9f89923fc921cabff3f174cb048957b53f298051)) +- dockerfile ([ee2f0b4](https://github.com/lidofinance/lido-keys-api/commit/ee2f0b4b248282276e312a771de954ddc2a87d83)) +- dockerfile ([dc8541b](https://github.com/lidofinance/lido-keys-api/commit/dc8541b2689a566338d2159ffca849d8586fbd57)) +- error with validation pipe ([37e2a31](https://github.com/lidofinance/lido-keys-api/commit/37e2a3158a54c267d6d96c42f9364a6225f1bbdb)) +- file env validation ([a3fd0c1](https://github.com/lidofinance/lido-keys-api/commit/a3fd0c1df4810f61d94ddb149715c5dbbc066280)) +- fix description in tooEarlyResp ([4c8fb94](https://github.com/lidofinance/lido-keys-api/commit/4c8fb94f8d70edb9f9eae95ce272ffcd3ade0c43)) +- fix types ([0f4c1f9](https://github.com/lidofinance/lido-keys-api/commit/0f4c1f90ac78116a4d1470ee7d2dc1f86eef6ed5)) +- log ([80b42c0](https://github.com/lidofinance/lido-keys-api/commit/80b42c09fd9502c4a55810dc2083bb8445c990c3)) +- log ([faf6c7f](https://github.com/lidofinance/lido-keys-api/commit/faf6c7fab69c703399d52970c4cb54622b12ddb9)) +- logger names ([b0a3283](https://github.com/lidofinance/lido-keys-api/commit/b0a3283828fbb5b1a9cc8bf053015df9f4aa99be)) +- message ([9d800c9](https://github.com/lidofinance/lido-keys-api/commit/9d800c9eac0270c42a00cbea09fbb111c4e5026c)) +- port publishing in demo compose ([5b59659](https://github.com/lidofinance/lido-keys-api/commit/5b59659a0621aa9d8c1f7ba36617aa6897784d18)) +- property name in validation ([90e6a02](https://github.com/lidofinance/lido-keys-api/commit/90e6a02eb7f61f1464db4641e39685490ce07b17)) +- readme ([08840dd](https://github.com/lidofinance/lido-keys-api/commit/08840dd4259d39b1c8720a4fe1642fe74f324430)) +- readme ([dcca44d](https://github.com/lidofinance/lido-keys-api/commit/dcca44d1847a933c9f03633c9927279c4c7c66fb)) +- registry and constants dependencies update ([ae33bbc](https://github.com/lidofinance/lido-keys-api/commit/ae33bbc28bbf18f087d6a400d10a93e51c3d93d2)) +- remove trailing slash in endpoint ([b2995a8](https://github.com/lidofinance/lido-keys-api/commit/b2995a85d18cd91cad213b1cb69f6b8d2ddd341c)) +- remove wrong log ([cca2b2c](https://github.com/lidofinance/lido-keys-api/commit/cca2b2cfd2c01f10dcb31ad6ecb38b69a3fc3268)) +- small fixes ([55447a2](https://github.com/lidofinance/lido-keys-api/commit/55447a20db1fec5aa95e2ff9cfaa4bed02985e0e)) +- SR abi update ([1a3b493](https://github.com/lidofinance/lido-keys-api/commit/1a3b493f7ba7e2eca92073921d280152fac87053)) +- trailing slash from el cl providers ([5d02c3e](https://github.com/lidofinance/lido-keys-api/commit/5d02c3ed9c875028c06829bcfa2e5800a73b2378)) +- unused ([0a7a2f6](https://github.com/lidofinance/lido-keys-api/commit/0a7a2f659751a383a647e2a61403a19e119a1a1e)) +- update contract. ([0cf38a6](https://github.com/lidofinance/lido-keys-api/commit/0cf38a6ed483b6c0f1a58d877691b898463e8bf5)) +- validation ([687a920](https://github.com/lidofinance/lido-keys-api/commit/687a920ad60218935a2388813a829207e1d2e811)) +- validatorIndex -> validator_index as in eth doc; validator_index and epoch to string. ([483fb3f](https://github.com/lidofinance/lido-keys-api/commit/483fb3f56bae929963b51d743cd53835d69f3744)) +- validators endpoints name. ([29cf425](https://github.com/lidofinance/lido-keys-api/commit/29cf4259def573e4652f276a8ac0e8b1ffaab14a)) ### Features -* locator ([ea8f09b](https://github.com/lidofinance/lido-keys-api/commit/ea8f09b28d5f89abdc7b8a290664da636670b774)) -* trace timeout decorator ([bc5d0a0](https://github.com/lidofinance/lido-keys-api/commit/bc5d0a058c037c2d5b6919e9bf26becd5984ebfb)) - - +- locator ([ea8f09b](https://github.com/lidofinance/lido-keys-api/commit/ea8f09b28d5f89abdc7b8a290664da636670b774)) +- trace timeout decorator ([bc5d0a0](https://github.com/lidofinance/lido-keys-api/commit/bc5d0a058c037c2d5b6919e9bf26becd5984ebfb)) # [0.6.0](https://github.com/lidofinance/lido-keys-api/compare/0.5.0...0.6.0) (2023-03-07) - ### Bug Fixes -* add label ([3c2039b](https://github.com/lidofinance/lido-keys-api/commit/3c2039beb089f365a92d169a3ef13c77510114bb)) -* consensus fetch ([1df5850](https://github.com/lidofinance/lido-keys-api/commit/1df585088b56377a3c22ab3613237e7a7561748e)) -* disable cl ([a368b7d](https://github.com/lidofinance/lido-keys-api/commit/a368b7d1e474d9644a4f11acb94b51c09b92a771)) -* remove unused env ([3d716a4](https://github.com/lidofinance/lido-keys-api/commit/3d716a4e2d9d35c1c077b6da13c29080e895274a)) -* version ([080d92b](https://github.com/lidofinance/lido-keys-api/commit/080d92bab98daf9c01e81d03a00d0fce2c294772)) - +- add label ([3c2039b](https://github.com/lidofinance/lido-keys-api/commit/3c2039beb089f365a92d169a3ef13c77510114bb)) +- consensus fetch ([1df5850](https://github.com/lidofinance/lido-keys-api/commit/1df585088b56377a3c22ab3613237e7a7561748e)) +- disable cl ([a368b7d](https://github.com/lidofinance/lido-keys-api/commit/a368b7d1e474d9644a4f11acb94b51c09b92a771)) +- remove unused env ([3d716a4](https://github.com/lidofinance/lido-keys-api/commit/3d716a4e2d9d35c1c077b6da13c29080e895274a)) +- version ([080d92b](https://github.com/lidofinance/lido-keys-api/commit/080d92bab98daf9c01e81d03a00d0fce2c294772)) ### Features -* alerts fix, envs ([b2e4371](https://github.com/lidofinance/lido-keys-api/commit/b2e4371fc74d24e74dc28d78a52751de58ad16b4)) - - +- alerts fix, envs ([b2e4371](https://github.com/lidofinance/lido-keys-api/commit/b2e4371fc74d24e74dc28d78a52751de58ad16b4)) # [0.5.0](https://github.com/lidofinance/lido-keys-api/compare/0.4.1...0.5.0) (2023-02-22) - ### Bug Fixes -* add grafana prometheus ([0203180](https://github.com/lidofinance/lido-keys-api/commit/020318009e83be75dfac6c07073723705fb03486)) -* bump max-old-space-size ([d9ec404](https://github.com/lidofinance/lido-keys-api/commit/d9ec404a0e28dbb1b50de5c00b1dcb8454115f36)) -* bump max-old-space-size ([612746f](https://github.com/lidofinance/lido-keys-api/commit/612746f8afb46efc2d8e6c8dcb8e461bb5880771)) -* bump memory limit ([281e38b](https://github.com/lidofinance/lido-keys-api/commit/281e38b26d20a9b6ba23f33b5712126f6f69b7d9)) -* catch job error ([09166db](https://github.com/lidofinance/lido-keys-api/commit/09166dbb3cc5709371c541f5531c300c86818155)) -* db config ([950f38e](https://github.com/lidofinance/lido-keys-api/commit/950f38eee47c1f5c76eb0e219e9a1af924fcd209)) -* db config ([ba741fd](https://github.com/lidofinance/lido-keys-api/commit/ba741fde7ba21b725a7ebd5a56ea44f6058c381f)) -* metrics ([6fe2bcb](https://github.com/lidofinance/lido-keys-api/commit/6fe2bcbce5ca1c92e8da9487f2fa5753dd5037c6)) -* mikroorm config ([31280bf](https://github.com/lidofinance/lido-keys-api/commit/31280bfeac5741e47f56f1d8a8e30aa463700501)) -* README ([eeab718](https://github.com/lidofinance/lido-keys-api/commit/eeab7180ce05479d9297f2489f0879f34579ff47)) -* remove commenta ([9fc7879](https://github.com/lidofinance/lido-keys-api/commit/9fc787942c5013bed186245384022120d00727aa)) -* remove secrets from log ([266879a](https://github.com/lidofinance/lido-keys-api/commit/266879a5da18941c355ebc728bc1c6b372d56737)) -* remove secrets from log ([6356395](https://github.com/lidofinance/lido-keys-api/commit/6356395dde0a2cae9abe490d351514497597606c)) -* sample ([74f2813](https://github.com/lidofinance/lido-keys-api/commit/74f28139a16e39165a7512f2ecf34f22eb7a48f2)) -* small fixes ([04c5f01](https://github.com/lidofinance/lido-keys-api/commit/04c5f01fb06aa5a74f416cc40310bab75cf00a2a)) -* updated packages ([fe15201](https://github.com/lidofinance/lido-keys-api/commit/fe152010690456c6e5425ba6ba2acb7e760f65bd)) -* used value in metrics ([d92220a](https://github.com/lidofinance/lido-keys-api/commit/d92220ad4015a45c676420fd71046c1a7daa423d)) - +- add grafana prometheus ([0203180](https://github.com/lidofinance/lido-keys-api/commit/020318009e83be75dfac6c07073723705fb03486)) +- bump max-old-space-size ([d9ec404](https://github.com/lidofinance/lido-keys-api/commit/d9ec404a0e28dbb1b50de5c00b1dcb8454115f36)) +- bump max-old-space-size ([612746f](https://github.com/lidofinance/lido-keys-api/commit/612746f8afb46efc2d8e6c8dcb8e461bb5880771)) +- bump memory limit ([281e38b](https://github.com/lidofinance/lido-keys-api/commit/281e38b26d20a9b6ba23f33b5712126f6f69b7d9)) +- catch job error ([09166db](https://github.com/lidofinance/lido-keys-api/commit/09166dbb3cc5709371c541f5531c300c86818155)) +- db config ([950f38e](https://github.com/lidofinance/lido-keys-api/commit/950f38eee47c1f5c76eb0e219e9a1af924fcd209)) +- db config ([ba741fd](https://github.com/lidofinance/lido-keys-api/commit/ba741fde7ba21b725a7ebd5a56ea44f6058c381f)) +- metrics ([6fe2bcb](https://github.com/lidofinance/lido-keys-api/commit/6fe2bcbce5ca1c92e8da9487f2fa5753dd5037c6)) +- mikroorm config ([31280bf](https://github.com/lidofinance/lido-keys-api/commit/31280bfeac5741e47f56f1d8a8e30aa463700501)) +- README ([eeab718](https://github.com/lidofinance/lido-keys-api/commit/eeab7180ce05479d9297f2489f0879f34579ff47)) +- remove commenta ([9fc7879](https://github.com/lidofinance/lido-keys-api/commit/9fc787942c5013bed186245384022120d00727aa)) +- remove secrets from log ([266879a](https://github.com/lidofinance/lido-keys-api/commit/266879a5da18941c355ebc728bc1c6b372d56737)) +- remove secrets from log ([6356395](https://github.com/lidofinance/lido-keys-api/commit/6356395dde0a2cae9abe490d351514497597606c)) +- sample ([74f2813](https://github.com/lidofinance/lido-keys-api/commit/74f28139a16e39165a7512f2ecf34f22eb7a48f2)) +- small fixes ([04c5f01](https://github.com/lidofinance/lido-keys-api/commit/04c5f01fb06aa5a74f416cc40310bab75cf00a2a)) +- updated packages ([fe15201](https://github.com/lidofinance/lido-keys-api/commit/fe152010690456c6e5425ba6ba2acb7e760f65bd)) +- used value in metrics ([d92220a](https://github.com/lidofinance/lido-keys-api/commit/d92220ad4015a45c676420fd71046c1a7daa423d)) ### Features -* add alerts ([8a059b4](https://github.com/lidofinance/lido-keys-api/commit/8a059b445429ed69d3b80e021f1d76441119796b)) -* disable validators registry by flag ([6302a7b](https://github.com/lidofinance/lido-keys-api/commit/6302a7bd71135da04171630bccc0c8be75b9f496)) -* run jobs in sequence ([52e92a9](https://github.com/lidofinance/lido-keys-api/commit/52e92a9b598aaea22215777bd854037a31c22471)) - - +- add alerts ([8a059b4](https://github.com/lidofinance/lido-keys-api/commit/8a059b445429ed69d3b80e021f1d76441119796b)) +- disable validators registry by flag ([6302a7b](https://github.com/lidofinance/lido-keys-api/commit/6302a7bd71135da04171630bccc0c8be75b9f496)) +- run jobs in sequence ([52e92a9](https://github.com/lidofinance/lido-keys-api/commit/52e92a9b598aaea22215777bd854037a31c22471)) ## [0.4.1](https://github.com/lidofinance/lido-keys-api/compare/0.4.0...0.4.1) (2023-02-17) - ### Bug Fixes -* db config ([e7a62aa](https://github.com/lidofinance/lido-keys-api/commit/e7a62aaf1ef06ababf634251c0529e1f5beaeb59)) - - - +- db config ([e7a62aa](https://github.com/lidofinance/lido-keys-api/commit/e7a62aaf1ef06ababf634251c0529e1f5beaeb59)) diff --git a/README.md b/README.md index 65467630..7819427a 100644 --- a/README.md +++ b/README.md @@ -900,15 +900,13 @@ Pay attention that API by default running job for fetching and updating Validato ## Release flow -To create new release: - -1. Merge all changes to the `main` branch -1. Navigate to Repo => Actions -1. Run action "Prepare release" action against `main` branch -1. When action execution is finished, navigate to Repo => Pull requests -1. Find pull request named "chore(release): X.X.X" review and merge it with "Rebase and merge" (or "Squash and merge") -1. After merge release action will be triggered automatically -1. Navigate to Repo => Actions and see last actions logs for further details +To create a new release: + +1. Merge all changes to the `main` branch. +1. After the merge, the `Prepare release draft` action will run automatically. When the action is complete, a release draft is created. +1. When you need to release, go to Repo → Releases. +1. Publish the desired release draft manually by clicking the edit button - this release is now the `Latest Published`. +1. After publication, the action to create a release bump will be triggered automatically. ## License