generated from alecodes/base-template
chore: add semantic version to pipeline
This commit is contained in:
parent
e0b259cc6f
commit
0f62d4e2cb
3 changed files with 42 additions and 19 deletions
|
|
@ -6,8 +6,24 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
bump-crate:
|
||||
runs-on: rust
|
||||
steps:
|
||||
- name: Bump version and publish
|
||||
uses: https://github.com/cocogitto/cocogitto-action@v3.10
|
||||
env:
|
||||
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_TOKEN_FORGEJO }}
|
||||
with:
|
||||
release: true
|
||||
check-latest-tag-only: true
|
||||
git-user: 'Cog Bot'
|
||||
git-user-email: 'cog@alecodes.page'
|
||||
|
||||
|
||||
create-docker-images:
|
||||
runs-on: host
|
||||
needs:
|
||||
- bump-crate
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
|
|
|||
9
cog.toml
9
cog.toml
|
|
@ -7,8 +7,13 @@ generate_mono_repository_package_tags = true
|
|||
branch_whitelist = []
|
||||
skip_ci = "[skip ci]"
|
||||
skip_untracked = false
|
||||
pre_bump_hooks = []
|
||||
post_bump_hooks = []
|
||||
pre_bump_hooks = [
|
||||
"sed -E -i 's/(\"version\":) \"[0-9.]{5}\"/\\1 \"{{version}}\"/gi' package.json",
|
||||
"cargo build --release",
|
||||
"echo 'bumping from {{latest|0.0.0}} to {{version|0.0.1}}'",
|
||||
"cargo bump {{version|0.0.1}}",
|
||||
]
|
||||
post_bump_hooks = ["git push", "git push origin {{version_tag}}"]
|
||||
pre_package_bump_hooks = []
|
||||
post_package_bump_hooks = []
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "compendium",
|
||||
"module": "index.ts",
|
||||
"version": "0.0.0",
|
||||
"devDependencies": {
|
||||
"@alecodes/bun-plugin-sass": "^0.1.2",
|
||||
"@alecodes/bun-static-builder": "^0.1.0",
|
||||
|
|
@ -16,3 +17,4 @@
|
|||
"htmx.org": "2.0.4"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue