diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2821fbc..e163c7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,10 @@ name: Release on: - workflow_dispatch: + push: + branches: + - main + jobs: bump-version: @@ -12,7 +15,7 @@ jobs: - name: Check out uses: actions/checkout@v3 with: - token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" + token: "${{ secrets.GITHUB_TOKEN }}" fetch-depth: 0 - name: Create bump and changelog uses: commitizen-tools/commitizen-action@master diff --git a/CHANGELOG.md b/CHANGELOG.md index f4d1331..8d66c0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +## v1.3.0 (2024-07-25) + +### Feat + +- **inception**: automatic release workflow. +- add `jq` and `bat` (with alias) + +### Fix + +- github token for inception release checkout. +- **python**: update deprecated linter configuration. +- **python**: type checking issue. + ## v1.2.0 (2024-07-22) ### Feat diff --git a/README.md b/README.md index d5bc187..b166372 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ decision and help us to improve them. | Feature | Python | Node.js | Go | Rust | |---------------------------|--------|---------|-----|------| | Automatic Changelog | ✅ | ⏳ | ⏳ | ⏳ | +| Automatic Release | ✅ | ⏳ | ⏳ | ⏳ | | Automatic Versioning | ✅ | ⏳ | ⏳ | ⏳ | | CI/CD | ✅ | ✅ | ✅ | ✅ | | Check code docs on commit | ✅ | ⏳ | ⏳ | ⏳ | @@ -52,7 +53,6 @@ decision and help us to improve them. | devcontainer | ✅ | ✅ | ✅ | ✅ | | difftastic | ✅ | ✅ | ✅ | ✅ | | dotenv | ✅ | ✅ | ✅ | ✅ | - ## How to Use ### Prerequisites diff --git a/src/inception/__init__.py b/src/inception/__init__.py index d0f2dbd..df66284 100644 --- a/src/inception/__init__.py +++ b/src/inception/__init__.py @@ -1 +1 @@ -__version__ = "v1.2.0" +__version__ = "v1.3.0" diff --git a/template/{% if language == 'Python' %}{{ project_name }}{% endif %}/.github/workflows/release.yml b/template/{% if language == 'Python' %}{{ project_name }}{% endif %}/.github/workflows/release.yml new file mode 100644 index 0000000..e163c7a --- /dev/null +++ b/template/{% if language == 'Python' %}{{ project_name }}{% endif %}/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release + +on: + push: + branches: + - main + + +jobs: + bump-version: + if: "!startsWith(github.event.head_commit.message, 'bump:')" + runs-on: ubuntu-latest + name: "Bump version and create changelog with commitizen" + steps: + - name: Check out + uses: actions/checkout@v3 + with: + token: "${{ secrets.GITHUB_TOKEN }}" + fetch-depth: 0 + - name: Create bump and changelog + uses: commitizen-tools/commitizen-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + changelog_increment_filename: body.md + - name: Release + uses: softprops/action-gh-release@v1 + with: + body_path: "body.md" + tag_name: ${{ env.REVISION }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}