-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
43 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |