diff --git a/.cz.toml b/.cz.toml new file mode 100644 index 0000000..a45658d --- /dev/null +++ b/.cz.toml @@ -0,0 +1,7 @@ +[tool.commitizen] +name = "cz_conventional_commits" +tag_format = "$version" +version_type = "semver" +version = "0.0.1" +update_changelog_on_bump = true +major_version_zero = true diff --git a/.github/workflows/releases.yaml b/.github/workflows/releases.yaml new file mode 100644 index 0000000..d4449c6 --- /dev/null +++ b/.github/workflows/releases.yaml @@ -0,0 +1,34 @@ +name: Bump version + +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@v4 + with: + token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" + fetch-depth: 0 + - name: Create bump and changelog + uses: commitizen-tools/commitizen-action@master + with: + github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + - name: Create bump and changelog + uses: commitizen-tools/commitizen-action@master + with: + github_token: ${{ secrets.PERSONAL_ACCESS_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 }} diff --git a/readme.md b/readme.md index c411d16..e655061 100644 --- a/readme.md +++ b/readme.md @@ -1,20 +1,3 @@ -# Hugo Starter Theme +# Optom Code Theme (WIP) -Dead-simple Hugo theme with everything you need to get started. Intended to be a starter for creating your own theme without including useless bloat like most Hugo themes. - -## Getting started - -Inside your project folder, copy the theme to your `themes` folder. Since you're just using it as a starter for your theme, remove the git history. - -```bash -git clone https://github.com/ericmurphyxyz/hugo-starter-theme themes/your-theme-name -rm -rf themes/your-theme-name/.git -``` - -If you'd like some example content and an example config file to get started, you can copy the `exampleSite` directory into your root Hugo directory. - -```bash -cp -r themes/your-theme-name/exampleSite/* ./ -``` - -To learn more about building themes in Hugo, refer to Hugo's [templating documentation](https://gohugo.io/templates/). +Credit: https://github.com/ericmurphyxyz/hugo-starter-theme for starting template